Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing data from a database into JCombo Box  RSS feed

 
Muyiwa Johnnny
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to Access the Database to retreive the result into a resultSet and diplay the records from the resultSet in a JCombo Box,Pls Can anybody help me with good information on how achieve this task.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question doesn't make any sense in "Meaningless Drivel", so I'm moving it to JDBC.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
 
kishore harindran
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
use :
jComboBox.setModel(new DefaultComboBoxModel(objlist));
where objlist - array of objects.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!