I have following data (String):
Course1: A1
Course1: A2
Course2: B1
Course2: B2
Course2: B3
Course2: B4
Course3: C1
Course3: C2
I'd like to create two JComboBox (JComboBox1, JComboBox2) so that JComboBox1 contains Course1,Course2,Course3, etc.
If I select, say, Course2 from JComboBox1 then corresponding B1,B2,B3,B4 should be populated in JComboBox2.
How to implement this? Many Thanks.