public static Color showDialog(
      final Component parent,
      final String title,
      final Color initialColor,
      final Color[] recentColors)
      throws HeadlessException {
    final CColorChooser pane = new CColorChooser(initialColor, recentColors);
    final SelectedColorActionListener ok = pane.new SelectedColorActionListener();
    final JDialog dlg = createDialog(parent, title, true, pane, ok, null);

    dlg.setVisible(true);
    dlg.dispose();

    return ok.getColor();
  }
@author cblichmann@google.com (Christian Blichmann)
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CColorChooser.java