Hi,

your Objective is to bring out a color Palette when u click on a menu item, right!!!


This can be done in two steps :

1. Add Actionlistenerto the required MenuItem.
2.In the actionPerformed method, write the following code

Code:
Color newColor = JColorChooser.showDialog(
                     this,                                 //refers the parent frame
                     "Choose Background Color", //Title of ColorChooser Dialog
                     Color.blue                       //Initial color selected in Chooser
                     );
the above code pops up the color chooser dialog and the selected color is in the newColor variable.