returnValue = JOptionPane.CANCEL_OPTION;
Component c = argTable.getEditorComponent(); if (c != null) if (c instanceof JTextField) { int rowIndex = argTable.getEditingRow(); int colIndex = argTable.getEditingColumn(); if (rowIndex != -1 && colIndex != -1) model.setValueAt(((JTextField)c).getText(), rowIndex, colIndex); } else if(log.isErrorEnabled()) { log.error("Unexpected editor class: " + c.getClass()); } returnValue = JOptionPane.OK_OPTION;
      public void actionPerformed(ActionEvent e) {        returnValue = JOptionPane.CANCEL_OPTION;        setVisible(false);      }