Here you can find the source of AreAllTextFieldsFilled(javax.swing.JTextField[] tfs)
public static boolean AreAllTextFieldsFilled(javax.swing.JTextField[] tfs)
//package com.java2s; /*// w ww . jav a 2s . 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 AreAllTextFieldsFilled(javax.swing.JTextField[] tfs) { for (int i = 0; i < tfs.length; i++) { if (IsTextFieldEmpty(tfs[i])) return false; } return true; } public static boolean IsTextFieldEmpty(javax.swing.JTextField tf) { return (tf.getText().length() == 0); } }