/**
* Creates the color chooser.
*/
public void createColorChooser()
{
final JColorChooser colorChooser = new JColorChooser();
final JLabel previewLabel = new JLabel("Color", JLabel.CENTER);
previewLabel.setFont(new Font("Serif", Font.BOLD | Font.ITALIC, 48));
previewLabel.setSize(previewLabel.getPreferredSize());
previewLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 1, 0));
colorChooser.setPreviewPanel(previewLabel);
ActionListener okActionListener = new ActionListener()
{
public void actionPerformed(ActionEvent actionEvent)
{
Debug.println("OK Button");
Debug.println(colorChooser.getColor().toString());
getCanvas().onShapeColorChanged( colorChooser.getColor() );
repaint();
}
};
ActionListener cancelActionListener = new ActionListener()