am.put(ACTION_CANCEL_EDIT, new CancelAction()); //NOI18N
am.put(ACTION_CANCEL_EDIT, new CancelAction()); //NOI18N
am.put(ACTION_CANCEL_EDIT, new CancelAction());
public void actionPerformed(ActionEvent ae) { JTable jt = (JTable) ae.getSource(); if (jt != null) { if (jt.isEditing()) { TableCellEditor tce = jt.getCellEditor(); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "Cancelling edit due to keyboard event"); //NOI18N } if (tce != null) { jt.getCellEditor().cancelCellEditing(); } } else { //If we're in a dialog, try to close it trySendEscToDialog(jt); } } }
public void actionPerformed(ActionEvent ae) { JTable jt = (JTable) ae.getSource(); if (jt != null) { if (jt.isEditing()) { TableCellEditor tce = jt.getCellEditor(); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "Cancelling edit due to keyboard event"); //NOI18N } if (tce != null) { jt.getCellEditor().cancelCellEditing(); } } else { //If we're in a dialog, try to close it trySendEscToDialog(jt); } } }
public void actionPerformed(ActionEvent ae) { JTable jt = (JTable) ae.getSource(); if (jt != null) { if (jt.isEditing()) { TableCellEditor tce = jt.getCellEditor(); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "Cancelling edit due to keyboard event"); //NOI18N } if (tce != null) { jt.getCellEditor().cancelCellEditing(); } } else { //If we're in a dialog, try to close it trySendEscToDialog(jt); } } }