Пример #1
0
    @Override
    protected void doOKAction() {
      myColorPicker.appendRecentColor();
      myColorPicker.saveRecentColors();

      super.doOKAction();
    }
Пример #2
0
 @Override
 public void show() {
   super.show();
   myColorPicker.fireClosed(getExitCode() == DialogWrapper.OK_EXIT_CODE ? getColor() : null);
 }
Пример #3
0
 @Override
 public JComponent getPreferredFocusedComponent() {
   return myColorPicker.getPreferredFocusedComponent();
 }
Пример #4
0
 public Color getColor() {
   return myColorPicker.getColor();
 }