Package javax.swing.table

Examples of javax.swing.table.TableCellEditor.stopCellEditing()


        {
          cellEditor = table.getDefaultEditor( table.getColumnClass( column ) );
        }
        if( cellEditor != null )
        {
          cellEditor.stopCellEditing();
        }
      }
    }
    catch( RuntimeException e )
    {
View Full Code Here


        mOkPressed = true;

        if (mTable.isEditing()) {
            TableCellEditor editor = mTable.getCellEditor();
            if (editor != null) {
              editor.stopCellEditing();
            }
        }

        mConfig.setAfterTime(mAfterModel.getNumber().intValue());
        mConfig.setBeforeTime(mBeforeModel.getNumber().intValue());
View Full Code Here

    ok.addActionListener(new ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent e) {
        if (mTable.isEditing()) {
            TableCellEditor editor = mTable.getCellEditor();
            if (editor != null) {
              editor.stopCellEditing();
            }
        }
        mReturn = JOptionPane.OK_OPTION;
        setVisible(false);
      }
View Full Code Here

     * save any changes that have already been made.
     */
    public static void stopTableEditing(JTable table) {
        if (table.isEditing()) {
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
            cellEditor.stopCellEditing();
        }
    }
}
View Full Code Here

     * save any changes that have already been made.
     */
    protected void stopTableEditing() {
        if (table.isEditing()) {
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
            cellEditor.stopCellEditing();
        }
    }

    /**
     * Create the main GUI panel which contains the file table.
View Full Code Here

            // If a table cell is being edited, we should accept the current
            // value and stop the editing before adding a new row.
            if (cookieTable.isEditing()) {
                TableCellEditor cellEditor = cookieTable.getCellEditor(cookieTable.getEditingRow(),
                        cookieTable.getEditingColumn());
                cellEditor.stopCellEditing();
            }

            tableModel.addNewRow();
            tableModel.fireTableDataChanged();
View Full Code Here

  protected void buildPropertiesAndDispose() {
    // Make sure there is no active cell editor anymore
    TableCellEditor editor = propertiesTable.getCellEditor();
    if (editor != null) {
      editor.stopCellEditing();
    }

    // Apply possibly changed properties.
    properties.clear();
    properties.putAll(tableModel.getProperties());
View Full Code Here

  private void applyTileProperties() {
    // Make sure there is no active cell editor anymore
    TableCellEditor editor = tileProperties.getCellEditor();
    if (editor != null) {
      editor.stopCellEditing();
    }

    // Apply possibly changed properties
    if (currentTile != null) {
      PropertiesTableModel model = (PropertiesTableModel) tileProperties.getModel();
View Full Code Here

  private void buildPropertiesAndApply() {
    // Make sure there is no active cell editor anymore
    TableCellEditor cellEditor = propertiesTable.getCellEditor();
    if (cellEditor != null) {
      cellEditor.stopCellEditing();
    }

    // Apply possibly changed properties.
    applyPropertiesToTiles();
  }
View Full Code Here

     * save any changes that have already been made.
     */
    protected void stopTableEditing() {
        if (table.isEditing()) {
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
            cellEditor.stopCellEditing();
        }
    }

    /**
     * Initialize the table model used for the arguments table.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.