File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing data from a database into JCombo Box

 
Muyiwa Johnnny
Greenhorn
Posts: 2
  • 0
  • 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
  • 0
  • 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
Marshal
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Muyiwa,
Sun has a good short course on JDBC.
 
kishore harindran
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
use :
jComboBox.setModel(new DefaultComboBoxModel(objlist));
where objlist - array of objects.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic