links between variables
I have an array of JComboBoxes and an array of JTextFields.I have named each comboBox using :
combolist.setName("Name1"); and so on for the entire array.
(I can get tha names of all these comboBoxes in an array.)
These comboBoxes,their names and the textFields need to be linked.
that is I need something like this:
when I say a particular comboBox ,I should be able to get its name and the textfield.
Can anyone please suggest a method of doing this.
create a class that contains three variable
create a collection that contains the objects from this class
as vector or arraylist for example
Can you please elaborate your answer a little more.