Java JComboBox isJComboBoxNotEmpty(javax.swing.JComboBox combo)

Here you can find the source of isJComboBoxNotEmpty(javax.swing.JComboBox combo)

Description

is J Combo Box Not Empty

License

Open Source License

Declaration

public static boolean isJComboBoxNotEmpty(javax.swing.JComboBox<String> combo) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean isJComboBoxNotEmpty(javax.swing.JComboBox<String> combo) {
        return !((String) combo.getSelectedItem()).trim().isEmpty();
    }//from   w w  w  . j  a va  2  s.  com
}

Related

  1. initCombo(JComboBox combo)
  2. inputComboBox(JComboBox cbx, String[] str)
  3. isCbEquals(JComboBox cb, String str)
  4. isComboBoxButton(AbstractButton button)
  5. isEmptyStr(javax.swing.JComboBox input)
  6. largeThan(javax.swing.JComboBox input, double x)
  7. loadComboBox(JComboBox combo, List list)
  8. loadEnum(JComboBox combo, Class c, boolean removeAll)
  9. loadPrefs(Preferences prefs, String prefKey, JComboBox combo)