• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JComboBoxes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I'm working a on a program that kinda simulate a Car Dealer (browse and maybe buy)
problem I'm having here is that I've got 2 JComboBoxes that allows the user to choose how they was to browse. The first box has a list of browsing methods, which, when selected, sets items for a second JCombobox (example: "Car Type" when selected sets different types of cars in the 2nd box)
sorry I'm not that great at explaining things, here's my code for that part:


thanks to whoever helps and if anyone needs the rest of the code and/or classes, I can post them at request.

(sorry if this is the wrong forum to post this in^^; )
[ June 05, 2006: Message edited by: Hikari Moro ]
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here's a simple demo of changing the model (comboBox, not car)
click the first comboBox to set the options for the second comboBox

modify to suit your car types/options

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have u solved your problem? If not then brief your problem once again.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!