Java JTextField quickButtonFlip(JTextField t, JTextField a, JTextField b)

Here you can find the source of quickButtonFlip(JTextField t, JTextField a, JTextField b)

Description

Toggles the editiablity of our text fields.

License

Creative Commons License

Parameter

Parameter Description
t The textfield to enable
a A text field to disable
b Another text field to disable

Declaration

private static void quickButtonFlip(JTextField t, JTextField a, JTextField b) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

import javax.swing.JTextField;

public class Main {
    /**//from   w  w w  .java 2s  .  c  o m
     * Toggles the editiablity of our text fields.
     * 
     * @param t The textfield to enable
     * @param a A text field to disable
     * @param b Another text field to disable
     */
    private static void quickButtonFlip(JTextField t, JTextField a, JTextField b) {
        t.setEditable(true);
        a.setEditable(false);
        b.setEditable(false);
    }
}

Related

  1. isTextFieldModified(JTextField textField, String originalValue)
  2. newIntegerValue(JTextField text, int oldValue)
  3. onTextFieldChange(JTextField field, final Runnable task)
  4. parseTextFieldInteger(JTextField field)
  5. ponerMayuscula(KeyEvent e, JTextField textField)
  6. readBufferedImage(JTextField out)
  7. secureTextDeletionFromTextField(JTextField textField, int length)
  8. setEnabled(JTextField textField, boolean b)
  9. setEnabled(JTextField textField, boolean enabled)