void okCancelPanel_actionPerformed(ActionEvent e) {
   if (!okCancelPanel.wasOKPressed() || getCurrentChooser().isInputValid()) {
     setVisible(false);
   }
   // sstein: added else-if to fix MAC-OSX-bug
   else if ((okCancelPanel.wasOKPressed()) && (CheckOS.isMacOsx())) {
     // --sstein: leave out validation - because it returns always "false" on Mac-OSX ?
     // System.out.println("validate input:" + getCurrentChooser().isInputValid());
     // System.out.println("i am inside");
     okCancelPanel.setOKPressed(true);
     setVisible(false);
   }
 }
示例#2
0
 public static boolean transparentSplash() {
   return GUIUtil.isPerPixelTranslucencySupported() && !CheckOS.isLinux();
 }