예제 #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();
 }