Java JTable Cell Editor setEditableFalse(JTextField field)

Here you can find the source of setEditableFalse(JTextField field)

Description

Set text field non-editable.

License

Open Source License

Declaration

public static void setEditableFalse(JTextField field) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JTextField;

public class Main {
    /** Set text field non-editable.
    Also sets it non-focusable. */
    public static void setEditableFalse(JTextField field) {
        field.setEditable(false);/* w w w  .  j a v a2  s.c  o m*/
        field.setFocusable(false);
    }
}

Related

  1. setClickCountToStartEditing(JTable table, int count)
  2. setDefaultTableEditorsClicks(JTable table, int clickCountToStart)
  3. setEditable(JSpinner spinner, boolean bool)
  4. setEditable(JTextComponent component, boolean editable)
  5. setEditable(JTextComponent... components)
  6. setUneditable(JTextComponent... components)
  7. setupComboBoxEditor(TableColumn column, Object[] values)
  8. stopCellEditing(JTable table)
  9. stopCellEditing(JTable table)