Click Cancel button in JXColorSelectionButton
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 ?
精彩评论