JXColorSelectionButton broken in 0.9.3

View: New views
5 Messages — Rating Filter:   Alert me  

JXColorSelectionButton broken in 0.9.3

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just upgraded from 0.9.2

On Linux the JXColorSelectionButton button works fine in 0.9.2.
But in 0.9.3 the button is simply a black circle, pressing it brings up the chooser, but no matter what color I select, the circle remains black. It appears the background is set correctly behind the scenes, it's just not rendered correctly.

Have I missed an essential step when upgrading or is this a real bug.

Cheers.
Peter Henderson
[Message sent by forum member 'phenderson' (phenderson)]

http://forums.java.net/jive/thread.jspa?messageID=288319

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXColorSelectionButton broken in 0.9.3

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is "works fine"?  What was the behavior that you're seeing compare to what you are seeing?  Vaguely, remembering the code in this area, I think a "black circle" is expected is it not?

Karl
[Message sent by forum member 'kschaefe' (kschaefe)]

http://forums.java.net/jive/thread.jspa?messageID=288409

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXColorSelectionButton broken in 0.9.3

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Works fine, in that version 0.9.2 rendered a rectangle of the selected color.

From playing about with 0.9.3 in my IDE (netbeans) it appears that the black circle is painted with the foreground color of the control.


Thanks for the input.

Cheers
Peter.
[Message sent by forum member 'phenderson' (phenderson)]

http://forums.java.net/jive/thread.jspa?messageID=288427

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXColorSelectionButton broken in 0.9.3

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

The behavior you describe is the MacOSX behavior.  It was mentioned on these forums some time ago that the MacOSX display was not correct for all L&Fs.  The basic L&F is the circle.  What is the system specific L&F representation for the color selection button?  What Window Manager are you using?  Does that Manager have a color selection button that is standard?

The fundamental problem with the JXColorSelectionButton is that it fails to define a really useful cross-platform button.  There is no such concept on Windows and I don't recall one on Linux, but it's been some time since I used Linux.  As far as I know the only platform with a well-defined button is the Mac.

So, how do we support the L&F-appropriate behavior on other platforms?  I don't think it is to repeat the Mac behavior everyone.

Karl
[Message sent by forum member 'kschaefe' (kschaefe)]

http://forums.java.net/jive/thread.jspa?messageID=288479

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXColorSelectionButton broken in 0.9.3

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Karl,

Thanks for the feed back ;-)

I don't set any look and feel within my application. So it must be using the default look and feel while running Java 6 on Linux, would that be GTK+?

As far as I was concerned the behavior of 0.9.2, which painted a button with a colored rectangle inside, was quite adequate.

Peter Henderson.
[Message sent by forum member 'phenderson' (phenderson)]

http://forums.java.net/jive/thread.jspa?messageID=288531

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...

LightInTheBox - Buy quality products at wholesale price