-
links between variables
Hi
I have an array of JComboBoxes and an array of JTextFields.I have named each comboBox using :
combolist[0].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.
Warm Regards
-
create a class that contains three variable
combobox
textbox
name
create a collection that contains the objects from this class
as vector or arraylist for example
-
Hi
Can you please elaborate your answer a little more.
Thanks