Results 1 to 3 of 3
  1. #1
    Keerti is offline Member
    Join Date
    Jul 2008
    Posts
    5
    Rep Power
    0

    Default 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

  2. #2
    mtv134 is offline Member
    Join Date
    Aug 2008
    Posts
    22
    Rep Power
    0

    Default

    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
    visit http://www.thejavacode.com
    Muhammad Safwat

  3. #3
    Keerti is offline Member
    Join Date
    Jul 2008
    Posts
    5
    Rep Power
    0

    Default

    Hi
    Can you please elaborate your answer a little more.
    Thanks

Similar Threads

  1. how to add links (Action) to a combo box
    By impact in forum New To Java
    Replies: 2
    Last Post: 05-03-2008, 08:04 AM
  2. Initialize variables before use
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-22-2007, 12:22 PM
  3. Variables
    By mew in forum New To Java
    Replies: 3
    Last Post: 12-11-2007, 01:44 PM
  4. variables-methods
    By Warren in forum New To Java
    Replies: 1
    Last Post: 11-28-2007, 05:14 PM
  5. Require Links for free swing component
    By Gajesh Tripathi in forum Advanced Java
    Replies: 2
    Last Post: 08-11-2007, 11:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •