• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to map a varchar in database into a JComboBox in Swing?

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The field in the database is varchar(50)
However the Field on the form is combo.
Should I populate this combo in advance, and select the right one?
Or should I make another form, so that the edit customer form won't be reused?
Thanks
Jack
 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ask yourself where is the data coming from for the combo box? How are you going to store this data?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!