super("JColorChooser Test Frame");
setSize(200, 100);
final JButton go = new JButton("Show JColorChooser");
go.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Color c;
c = JColorChooser.showDialog(
((Component)e.getSource()).getParent(),
"Demo", Color.blue);
go.setBackground(c);
}
});
getContentPane().add(go);
addWindowListener(new BasicWindowMonitor());