int result = JOptionPane.showConfirmDialog(this,message);
int result = JOptionPane.showConfirmDialog(getParent(),message);
   public void closeDown() {      if (defaultProps.containsKey("saveme")) {         defaultProps.remove("saveme");         Object[] args = {propFileName};         String message = MessageFormat.format(                           LangTool.getString("messages.saveSettings"),                           args);         int result = JOptionPane.showConfirmDialog(this,message);         if (result == JOptionPane.OK_OPTION) {            try {               FileOutputStream out = new FileOutputStream(propFileName);                  // save off the width and height to be restored later               defaultProps.store(out,"------ Defaults --------");            }            catch (FileNotFoundException fnfe) {}            catch (IOException ioe) {}         }      }      vt.disconnect();   }