Available Methods
- getModel ( )
- setAutoResizeMode ( )
- getColumnCount ( )
- setSelectionMode ( )
- addMouseListener ( )
- getColumnModel ( )
- getTableHeader ( )
- getRowCount ( )
- setRowHeight ( )
- setModel ( )
- getValueAt ( )
- setDefaultRenderer ( )
- getSelectedRow ( )
- DropLocation ( )
- getSelectedRows ( )
- setPreferredScrollableViewportSize ( )
- rowAtPoint ( )
- convertColumnIndexToModel ( )
- setColumnSelectionAllowed ( )
- setRowSorter ( )
- setAutoCreateRowSorter ( )
- setRowSelectionInterval ( )
- setFillsViewportHeight ( )
- setRowSelectionAllowed ( )
- getSelectionBackground ( )
- convertRowIndexToModel ( )
- getRowSorter ( )
- getBackground ( )
- setValueAt ( )
- prepareRenderer ( )
- getDefaultRenderer ( )
- getCellRenderer ( )
- setDefaultEditor ( )
- setTableHeader ( )
- print ( )
- getSelectedColumn ( )
- getRowHeight ( )
- removeEditor ( )
- setAutoCreateColumnsFromModel ( )
- getSelectedRowCount ( )
- scrollRectToVisible ( )
- setFocusable ( )
- setName ( )
- getFont ( )
- getPrintable ( )
- setCellSelectionEnabled ( )
- setColumnSelectionInterval ( )
- getColumnName ( )
- addMouseMotionListener ( )
- getSelectedColumnCount ( )
- getSelectionModel ( )
- editCellAt ( )
- getCellRect ( )
- getCellEditor ( )
- setShowVerticalLines ( )
- setForeground ( )
- setMinimumSize ( )
- getDropLocation ( )
- setBorder ( )
- columnAtPoint ( )
- getSelectionForeground ( )
- setBackground ( )
- repaint ( )
- getSelectedColumns ( )
- getRowSelectionAllowed ( )
- setCursor ( )
- getFontMetrics ( )
- setBounds ( )
- getActionMap ( )
- setShowGrid ( )
- setShowHorizontalLines ( )
- addPropertyChangeListener ( )
- getParent ( )
- addKeyListener ( )
- setComponentPopupMenu ( )
- isEditing ( )
- setGridColor ( )
- isEnabled ( )
- setSize ( )
- setColumnModel ( )
- isRowSelected ( )
- isCellEditable ( )
- getEditorComponent ( )
Related Classes
- java.io.File
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.event.KeyEvent
- java.awt.BorderLayout
- javax.swing.JOptionPane
- java.awt.Component
- javax.swing.JScrollPane
- javax.swing.JTextField
- javax.swing.SwingUtilities
- java.awt.event.MouseAdapter
- javax.swing.ImageIcon
- java.awt.Point
- javax.swing.JComponent
- javax.swing.JCheckBox
- javax.swing.UIManager
- javax.swing.JComboBox
Java Code Examples for javax.swing.JTable#isEditing()
The following examples show how to use
javax.swing.JTable#isEditing() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RTable.java From marathonv5 with Apache License 2.0 | 6 votes |
public RTable(Component source, JSONOMapConfig omapConfig, Point point, IJSONRecorder recorder) { super(source, omapConfig, point, recorder); JTable table = (JTable) source; if (table.isEditing()) { column = table.getEditingColumn(); row = table.getEditingRow(); } else { if (point != null) { row = table.rowAtPoint(point); column = table.columnAtPoint(point); } else { row = table.getSelectedRow(); column = table.getSelectedColumn(); } } if (row == -1 || column == -1) { row = column = -1; } }
Example 2
Source File: BaseTable.java From netbeans with Apache License 2.0 | 6 votes |
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); } } }
Example 3
Source File: JTableJavaElement.java From marathonv5 with Apache License 2.0 | 5 votes |
@Override public boolean marathon_select(String text) { JTable table = (JTable) component; boolean cellEditing = table.isEditing(); if (cellEditing) { return true; } if ("".equals(text)) { table.clearSelection(); return true; } int[] rows; int[] cols; if ("all".equals(text)) { int rowCount = table.getRowCount(); int columnCount = table.getColumnCount(); rows = new int[rowCount]; cols = new int[columnCount]; for (int i = 0; i < rowCount; i++) { rows[i] = i; } for (int i = 0; i < columnCount; i++) { cols[i] = i; } } else { rows = parseRows(text); String[] colNames = parseCols(text); cols = new int[colNames.length]; for (int i = 0; i < colNames.length; i++) { cols[i] = getColumnIndex(colNames[i]); } } return selectRowsColumns(table, rows, cols); }
Example 4
Source File: GuiUtil.java From jts with GNU Lesser General Public License v2.1 | 5 votes |
public static void commitChanges(JTable table) { if (table.isEditing()) { String text = ((JTextComponent) table.getEditorComponent()).getText(); table.setValueAt(text, table.getEditingRow(), table.getEditingColumn()); table.getCellEditor().cancelCellEditing(); } }