【发布时间】:2013-03-23 12:57:07
【问题描述】:
这就是我创建 JComboBox 的方式 -
String[] options = {"First", "Second" , "Third"};
JComboBox optionsCombo = new JComboBox(options);
When one of these items is selected, how do i get the index of the item which was selected ?我不想要被选中的项目。
【问题讨论】:
-
您是否在 JComboBox 上检查了相应的侦听器?它必须提供一种获取所选索引的方法。
标签: java swing selection jcombobox