Skip to main content

A bug for type JXColorSelectionButton

No replies
theface
Offline
Joined: 2005-09-18
Points: 0

When the method "showDialog" is called ,the color chooser dialog is very ugly.I think change to following maybe a good idea:

dialog.pack();//compact the content layout of dialog
getChooser().setColor(getBackground());//set default color as current selected
SwingXUtils.center(dialog);//location to center
dialog.setVisible(true);//show

Sorry for my bad english.