Here you can find the source of _createJTextField(String name, FocusListener fl)
private static JTextField _createJTextField(String name, FocusListener fl)
//package com.java2s; //License from project: Open Source License import java.awt.event.FocusListener; import javax.swing.JTextField; public class Main { private static JTextField _createJTextField(String name, FocusListener fl) { JTextField jt = new JTextField(); jt.setName(name);//from ww w .j a v a 2s .co m jt.addFocusListener(fl); return jt; } }