Here you can find the source of isJTextFieldNotEmpty(javax.swing.JTextField field)
public static boolean isJTextFieldNotEmpty(javax.swing.JTextField field)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isJTextFieldNotEmpty(javax.swing.JTextField field) { return !(field.getText().trim().isEmpty()); }//w w w . j ava2 s. c om }