Hi all,
Please can someone help me. I need to create a series of JComboBoxes that are dynamic (the list in JComboBox2 must change depending on the sellection in JComboBox1).
So, basically, if the value in JComboBox1 is "A", JComboBox2 lists "Apple", "Orange" and "Pear". But if the selection in JComboBox1 is "B", JComboBox2 lists "Guitar", "Bass" and "Keyboard".
I hope I'm making sense here.
I think I've got the if statements figured out but what methods in the JComboBox class do I use?
Thank you in advance for any help here.
Clinton
"The important thing is not to stop questioning." - Albert Einstein
Please can someone help me. I need to create a series of JComboBoxes that are dynamic (the list in JComboBox2 must change depending on the sellection in JComboBox1).
So, basically, if the value in JComboBox1 is "A", JComboBox2 lists "Apple", "Orange" and "Pear". But if the selection in JComboBox1 is "B", JComboBox2 lists "Guitar", "Bass" and "Keyboard".
I hope I'm making sense here.
![[dazed] [dazed] [dazed]](/data/assets/smilies/dazed.gif)
Thank you in advance for any help here.
Clinton
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)