Java JComboBox Item addHeadersaveFileTypeItemsTo(JComboBox combo)

Here you can find the source of addHeadersaveFileTypeItemsTo(JComboBox combo)

Description

add Headersave File Type Items To

License

Open Source License

Declaration

public static void addHeadersaveFileTypeItemsTo(JComboBox<String> combo) 

Method Source Code

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

import javax.swing.JComboBox;

public class Main {
    public static String[] headersaveFileTypeItems = { "",
            "A - Assemblerquelltext", "B - BASIC-Programm",
            "b - Tiny-BASIC-Programm", "C - MC-Programm, selbststartend",
            "M - MC-Programm", "E - EPROM-Inhalt",
            "I - Information (Text)", "T - Text" };

    public static void addHeadersaveFileTypeItemsTo(JComboBox<String> combo) {
        for (String s : headersaveFileTypeItems) {
            combo.addItem(s);/* w ww. j  a  v a2 s. com*/
        }
    }
}

Related

  1. addFirstItem(JComboBox combobox, T item)
  2. addItems(JComboBox comboBox, Iterable items)
  3. contains(final JComboBox comboBox, final Object item)
  4. fillCombo(JComboBox comboBox, Collection items)
  5. findComboBoxItemForString(final JComboBox box, final String searchString)