Results 1 to 3 of 3
Thread: links between variables
- 08-12-2008, 10:15 AM #1
Member
- Join Date
- Jul 2008
- Posts
- 5
- Rep Power
- 0
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
- 08-12-2008, 11:05 AM #2
Member
- Join Date
- Aug 2008
- Posts
- 22
- Rep Power
- 0
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 examplevisit http://www.thejavacode.com
Muhammad Safwat
- 08-12-2008, 03:07 PM #3
Member
- Join Date
- Jul 2008
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
how to add links (Action) to a combo box
By impact in forum New To JavaReplies: 2Last Post: 05-03-2008, 07:04 AM -
Initialize variables before use
By Java Tip in forum Java TipReplies: 0Last Post: 12-22-2007, 11:22 AM -
Variables
By mew in forum New To JavaReplies: 3Last Post: 12-11-2007, 12:44 PM -
variables-methods
By Warren in forum New To JavaReplies: 1Last Post: 11-28-2007, 04:14 PM -
Require Links for free swing component
By Gajesh Tripathi in forum Advanced JavaReplies: 2Last Post: 08-11-2007, 10:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks