ADD a Color Palet in a Combo box

I need to create a Combo box with a Color Palet, as soon as the user clicks lets say on green on the palet that color is selected.

Please any help will be appreciate.

[180 byte] By [CDCDevelopera] at [2007-11-27 11:44:49]
# 1

a JColorChooser does not do what you want?

Michael_Dunna at 2007-7-29 17:58:05 > top of Java-index,Desktop,Core GUI APIs...
# 2

Here is some code I wrote from a couple of years ago. The class to concentrate on is the ColorMenuButton class. This does not use a JComboBox, cause this can be tricky to implement. It simply uses a JButton and a JPopupMenu that displays Color Icons which can be selected.

http://www.geocities.com/icewalker2g/downloads/colormenu.zip

ICE

icewalker2ga at 2007-7-29 17:58:05 > top of Java-index,Desktop,Core GUI APIs...
# 3

Thank you for your response, it help me a lot.

Appreaciate your help,

Wilfer

CDCDevelopera at 2007-7-29 17:58:05 > top of Java-index,Desktop,Core GUI APIs...