aspose file tools*
The moose likes Java in General and the fly likes I want sample code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "I want sample code" Watch "I want sample code" New topic
Author

I want sample code

chandoo Thummalapalli
Greenhorn

Joined: Aug 02, 2006
Posts: 2
hi all,
I want some code which i have done already in my previous organisation. since 4 t0 5 months because of not in touch, I would not able to do it.
Hope you will help me.

My requirement is: Retrieving the values from database and displaying it in the combo(list) box and by selecting any of the value in the list it must display its contents below.

I achieved retrieving the values from the database.
I require where to store these values i.e in which collection. and through that collection how they are displayed in combo and once selected the value in combo or list, how to display its contents below.

Any sample code i require explaining a little bit of it, if possible.

Reply me as soon as you can.

Thanking you,
T.Ravi Chandra
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

"chandoo Thummalapalli,"

Welcome to JavaRanch!

Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names. So using a display name of chandoo Thummalapalli, then signing your post as T.Ravi Chandra is not okay. You can edit your display name here.

Thank you for your prompt attention!

Also, the forum you posted in is for the SCJP exam, so I'm moving your post to Java in General (intermediate).


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

If you're talking about a JComboBox, then a quick look at the API documentation for that class would give you a good idea of how to approach this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I want sample code