permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes Help building a list from a JDBC query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help building a list from a JDBC query" Watch "Help building a list from a JDBC query" New topic
Author

Help building a list from a JDBC query

Nizan Horsefield
Ranch Hand

Joined: Jun 05, 2001
Posts: 42
Hello
I am at the stage where I need to implement a front end to an application. I need to display a list of server names that are held in an access database. I have done the JDBC work and have a Vector that holds the data. How do I use this data to create a lsit of TextFields to display the server names? I have tried all sorts.. Enumarating the Vector and then using .next(). Is there a factory that can do it that someone has laready written?
Cheers
NIz


Nizan Horsefield<BR>Sys Eng Internet Services<BR>Citibank
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
I don't know a factory method for this offhand. I'd probably look at listing the server names using a JList component. You can use setListData(Vector) to load it easily. Good luck...


"I'm not back." - Bill Harding, Twister
Nizan Horsefield
Ranch Hand

Joined: Jun 05, 2001
Posts: 42
Thanks I will give it a go!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help building a list from a JDBC query
 
Similar Threads
Display a list in a JTable
Displaying data and making the data a link on a JSP.
Instead of Vector?
ResultSet Data Manipulation
Design for Maintaining Static Data