This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help building a list from a JDBC query  RSS feed

 
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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!