我使用2個JComboBoxes條件的JComboBox
String arr1[] = {"text1", "text2", "text3"};
String arr2[] = {"text1", "text2", "text3"};
JComboBox box1 = new JComboBox(arr1);
JComboBox box2 = new JComboBox(arr2);
,我正在尋找條件像
if(text1 in box1 is selected)
only text2 and text3 is selectable/enabled in box2
+1謝謝你的回答 – vsr 2013-04-22 12:50:57