Код: Выделить всё
String[] arr={"ab","cd","ef"};
final JComboBox lstA = new JComboBox(arr);
Код: Выделить всё
final JComboBox lstA = new JComboBox();
void bind()
{
String[] arr={"ab","cd","ef"};
// bind arr to lstA
}
Подробнее здесь: https://stackoverflow.com/questions/192 ... ynamically
Мобильная версия