Link between JComboBox variables
I want to create multiple dorpdownlists in a JApplet.
Dropdownlist A, containing: A1, A2, A3
Dropdownlist B, containing: B1, B2, B3
Dropdownlist C, containing: C1, C2, C3
What I want to create, is that when I select A1 in Dropdownlist A, list B and C automatically show B1 and C1. The same when I select B2, list A and C automatically show A2 and C2. etc...
How should I do this? I think I need to declare JComboBoxes for the dropdownlist right? But how about the automatic selection "Link" between the dropdown lists? What kind of listeners are needed for this? And do I need to make use of the repaint method or something to automatically refresh the JApplet with all new items in de dropdown lists?