Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want sample code

 
chandoo Thummalapalli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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).
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic