Results 1 to 6 of 6
  1. #1
    pratik0807ray is offline Member
    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    Default How to relate two drop down lists

    Hi,
    I am new to Java. I am working on an application where I need to populate one dropdown from values from the .properties file and then, as the user select one of the values from the first dropdown, I need the values of another dropdown list (the values of this one are also stored in another .properties file) to change accordingly. In short, dynamic dropdown changes. Now, I am able to create the first dropdown but not the second. can anyone please help?

    I'm using Eclipse Helios and Tomcat 6.

    Thanks in advance.

  2. #2
    joeyvitoro is offline Member
    Join Date
    Oct 2011
    Posts
    90
    Rep Power
    0

    Default Re: How to relate two drop down lists

    I believe you would want to use the item state change event for the first dropdown to populate the second.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: How to relate two drop down lists

    What's a 'dropdown'?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    joeyvitoro is offline Member
    Join Date
    Oct 2011
    Posts
    90
    Rep Power
    0

    Default Re: How to relate two drop down lists

    I think he means a JComboBox... C# calls them DropDownLists

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: How to relate two drop down lists

    Well, this is a Java forum. If he means JComboBox he should say JComboBox.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    joeyvitoro is offline Member
    Join Date
    Oct 2011
    Posts
    90
    Rep Power
    0

    Default Re: How to relate two drop down lists

    Helpful as always, DB

Similar Threads

  1. weird output relate to socket programming
    By nanshaguo in forum Networking
    Replies: 1
    Last Post: 03-14-2011, 04:37 PM
  2. Replies: 10
    Last Post: 01-17-2011, 10:41 PM
  3. drag and drop - disable intra component drop
    By tomba in forum AWT / Swing
    Replies: 4
    Last Post: 12-09-2009, 01:01 PM
  4. Replies: 1
    Last Post: 04-01-2009, 10:28 AM
  5. Relate Thread and resultSet
    By HuanManwe in forum Threads and Synchronization
    Replies: 14
    Last Post: 02-15-2009, 09:12 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
  •