Here you can find the source of quickButtonFlip(JTextField t, JTextField a, JTextField b)
Parameter | Description |
---|---|
t | The textfield to enable |
a | A text field to disable |
b | Another text field to disable |
private static void quickButtonFlip(JTextField t, JTextField a, JTextField b)
//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); } }