开发者

Click Cancel button in JXColorSelectionButton

开发者 https://www.devze.com 2023-03-11 13:17 出处:网络
In my java application i load a JXColorSelectionButton from SwingX to choose a color from it then click \"Ok\" to apply the color. After doing this if i click the JXColorSelectionButton once again but

In my java application i load a JXColorSelectionButton from SwingX to choose a color from it then click "Ok" to apply the color. After doing this if i click the JXColorSelectionButton once again but click "Cancel" the color is reset.

This is a wrong behavior as when clicking "Cancel" the first color i chose should remain the same. The main problem is that there is no way i can d开发者_运维问答etect if "Ok" or "Cancel" is clicked in the JXColorSelectionButton's dialog to prevent this behavior.

Anyone can tell me a solution for this ?

0

精彩评论

暂无评论...
验证码 换一张
取 消