The Artima Developer Community
Sponsored Link

Java Answers Forum
selection list

3 replies on 1 page. Most recent reply: Mar 23, 2005 4:23 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
suhas koley

Posts: 3
Nickname: bubai
Registered: Mar, 2005

selection list Posted: Mar 16, 2005 4:29 AM
Reply to this message Reply
Advertisement
i hava three combo box when i select a data in the first one then data in the 2nd box will populate automatically in
the 2nd and so on............


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: selection list Posted: Mar 16, 2005 10:50 PM
Reply to this message Reply
So?

Are you asking how to accomplish this?

Add a listener for the Item State Change Event for every combobox wich affects another.
        comboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                //change the next combobox here
            }
        });

suhas koley

Posts: 3
Nickname: bubai
Registered: Mar, 2005

Re: selection list Posted: Mar 18, 2005 2:51 AM
Reply to this message Reply
i have got ur soln. but i want to populate it Dynamically
i take large nop of data from database and populate it to the selection box useing javaScript plz help.
suhas

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: selection list Posted: Mar 23, 2005 4:23 AM
Reply to this message Reply
what do you mean by "dynamically"?

If you mean that if you change one combobox, the avaiable items in another should change, then the method above is what you need.

Flat View: This topic has 3 replies on 1 page
Topic: PLEASE HELP FAST Previous Topic   Next Topic Topic: Hash Map

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use