Here you can find the source of addHeadersaveFileTypeItemsTo(JComboBox
public static void addHeadersaveFileTypeItemsTo(JComboBox<String> combo)
//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*/ } } }