This question is answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 1 - Pages: 1 - Last Post: 22-Jun-2016 00:42 Last Post By: jGromit Threads: [ Previous | Next ]

Posts: 8,616
Registered: 31-Jan-2006
BA 7 errors
Posted: 21-Jun-2016 02:07
  Click to reply to this thread Reply
Attachment index.htt (671 bytes)
Attachment onload.bsh (666 bytes)
When first loaded, the color swatch and color code in the settings don't match. The swatch is black, but the hex code is #ffffff (white). The default color needs to be set in onload.bsh.

But the skin's onload.bsh is going through some mighty gyrations to handle a simple color setting. There should be no need for two different variables - jAlbum can keep them in synch automatically. No need for any "listeners," either.
JColorSelector bgcolor = new JColorSelector("Background Color", new JSmartTextField(5));
Then add them to the ui:
add(new JLabel("Background color"));
The CSS, of course, would need to use bgcolor instead of looking for bgcolorCode.

There's also an unclosed <div> on the index page.

Much-simplified onload.bsh attached, along with an edited index.htt, to accomodate the variable change and to fix the HTML error.

Posts: 8,616
Registered: 31-Jan-2006
Re: BA 7 errors
Posted: 22-Jun-2016 00:42   in response to: jGromit in response to: jGromit
  Click to reply to this thread Reply
Fixed in BA 7.0.1.
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums