Java Code Examples for javax.swing.JTextField#removeActionListener()
The following examples show how to use
javax.swing.JTextField#removeActionListener() .
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: CustomSettingsDialog.java From swingsane with Apache License 2.0 | 6 votes |
public CustomTableCellEditor(JTextField textField, final OptionsOrderValuePair vp) { super(textField); textField.removeActionListener(delegate); valuePair = vp; delegate.setValue(textField); delegate = new EditorDelegate() { @Override public void setValue(Object val) { if (val instanceof JTextField) { if (value == null) { value = val; } } } @Override public boolean stopCellEditing() { updateOption(valuePair, (Component) value); return true; } }; textField.addActionListener(delegate); setClickCountToStart(1); }