aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes regarding combobox in frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "regarding combobox in frame" Watch "regarding combobox in frame" New topic
Author

regarding combobox in frame

sam sawant
Greenhorn

Joined: Mar 26, 2009
Posts: 12
i have 2 comboboxes
when i click on any item of combo box,other combobox values should change.
for eg
in 1st combobox values are(a,b,c)
if i select a
it shud display 1,2,3 in another combobox
sameways for b & c shud display something else

plzz help me
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

We don't just hand out ready made solutions here at the Ranch.
Tell us what you have tried to do and what problems you are facing and we will help you finding a solution.

Also please use real words.
http://faq.javaranch.com/java/UseRealWords

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
simplest way is to change combo2's model when combo1's selection changes
sam sawant
Greenhorn

Joined: Mar 26, 2009
Posts: 12
whats the syntax to change combobox model?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> whats the syntax to change combobox model?

comboBox.setModel(...)

(your question indicates you should read sun's comboBox tutorial)
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding combobox in frame