• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help building a list from a JDBC query

 
Nizan Horsefield
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Nizan Horsefield
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I will give it a go!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic