Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

setValue() doesn't work correctly on a ColorPicker

ibibbyJan 18 2013 — edited Jan 18 2013
I have a ColorPicker control in my app. The color can be set directly by the user, but can also be set programmatically by the app (for instance, when the user undoes their action of changing color).

Unfortunately, setValue() doesn't work properly. If I call setValue() before the user has clicked on the ColorPicker for the first time, it will work. However, if I call it after the user has used the control once, setValue() will fail to change the visibly selected color. It will change the underlying selection, so if I call getValue() after setValue() it will return the new value, but the visible selection on the control doesn't change.

First of all, is this a bug? And secondly, is there any workaround to make the control update itself to show the proper color after a setValue()?

Edited by: ibibby on Jan 18, 2013 12:20 PM

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 15 2013
Added on Jan 18 2013
4 comments
1,766 views