@Override protected void doOKAction() { myColorPicker.appendRecentColor(); myColorPicker.saveRecentColors(); super.doOKAction(); }
@Override public void show() { super.show(); myColorPicker.fireClosed(getExitCode() == DialogWrapper.OK_EXIT_CODE ? getColor() : null); }
@Override public JComponent getPreferredFocusedComponent() { return myColorPicker.getPreferredFocusedComponent(); }
public Color getColor() { return myColorPicker.getColor(); }