Java JTextField IsTextFieldEmpty(javax.swing.JTextField tf)

Here you can find the source of IsTextFieldEmpty(javax.swing.JTextField tf)

Description

Is Text Field Empty

License

CDDL license

Declaration

public static boolean IsTextFieldEmpty(javax.swing.JTextField tf) 

Method Source Code

//package com.java2s;
/*/*from   w  ww  . j  a va 2 s.c o  m*/
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the eBay SDK ../docs directory.
*/

public class Main {
    public static boolean IsTextFieldEmpty(javax.swing.JTextField tf) {
        return (tf.getText().length() == 0);
    }
}

Related

  1. isActiveComponents(JTextField... textFields)
  2. isEmptyStr(javax.swing.JTextField input)
  3. isInHighlight(MouseEvent e, JTextField label, Highlighter h)
  4. isJTextFieldNotEmpty(javax.swing.JTextField field)
  5. isTelpValid(JTextField field)
  6. isTextFieldModified(JTextField textField, String originalValue)
  7. newIntegerValue(JTextField text, int oldValue)
  8. onTextFieldChange(JTextField field, final Runnable task)
  9. parseTextFieldInteger(JTextField field)