Java JComboBox inputComboBox(JComboBox cbx, String[] str)

Here you can find the source of inputComboBox(JComboBox cbx, String[] str)

Description

input Combo Box

License

Open Source License

Declaration

public static void inputComboBox(JComboBox<String> cbx, String[] str) 

Method Source Code

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

import javax.swing.JComboBox;

public class Main {
    public static void inputComboBox(JComboBox<String> cbx, String[] str) {
        for (int i = 0; i < str.length; i++) {
            cbx.addItem(str[i]);/*from   w  w  w. j  a  v a 2 s .  co m*/
        }
    }
}

Related

  1. getMaxWidth(final JComboBox combo, final FontMetrics fm)
  2. getOnlyComboBox(Container owner)
  3. getPrinterJComboBox()
  4. getScrollBarWidth(JComboBox comboBox, JScrollPane scrollPane)
  5. initCombo(JComboBox combo)
  6. isCbEquals(JComboBox cb, String str)
  7. isComboBoxButton(AbstractButton button)
  8. isEmptyStr(javax.swing.JComboBox input)
  9. isJComboBoxNotEmpty(javax.swing.JComboBox combo)