Головна‎ > ‎Java Swing‎ > ‎

Випадайка Swing

String country[]={"India","Aus","U.S.A","England","Newzealand"};
JComboBox box1 = new JComboBox(country);



String rez = country[box1.getSelectedIndex()];