aspose file tools*
The moose likes JDBC and the fly likes Accessing data from a database into JCombo Box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Accessing data from a database into JCombo Box" Watch "Accessing data from a database into JCombo Box" New topic
Author

Accessing data from a database into JCombo Box

Muyiwa Johnnny
Greenhorn

Joined: Nov 22, 2003
Posts: 2
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

Joined: Jan 30, 2000
Posts: 18671
This question doesn't make any sense in "Meaningless Drivel", so I'm moving it to JDBC.


"I'm not back." - Bill Harding, Twister
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30506
    
150

Muyiwa,
Sun has a good short course on JDBC.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
kishore harindran
Greenhorn

Joined: Dec 04, 2002
Posts: 14
hi,
use :
jComboBox.setModel(new DefaultComboBoxModel(objlist));
where objlist - array of objects.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing data from a database into JCombo Box