FileDocCategorySizeDatePackage
ColorChooserDialog.javaAPI DocExample1748Wed Jan 17 20:11:22 GMT 2001None

ColorChooserDialog

public class ColorChooserDialog extends JFrame

Fields Summary
Constructors Summary
public ColorChooserDialog()

    super("ColorChooserDialog");

    JDialog colorChooserDialog =
        JColorChooser.createDialog(this, "This is a sample title", true,
        new JColorChooser(), new ActionListener() {
      public void actionPerformed(ActionEvent e) {System.exit(0);}
    }, new ActionListener() {
      public void actionPerformed(ActionEvent e) {System.exit(0);}
    });
    colorChooserDialog.show();
  
Methods Summary
public static voidmain(java.lang.String[] args)

    JFrame frame = new ColorChooserDialog();
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {System.exit(0);}
    });

    frame.pack();
    frame.setVisible(true);