aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes populate jList with database values.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "populate jList with database values...." Watch "populate jList with database values...." New topic
Author

populate jList with database values....

kanika puri
Greenhorn

Joined: Nov 11, 2010
Posts: 4
i want to enter data in jlist from database according to some criteria... how can i do it.
any help would be nice...
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

kanika puri wrote:i want to enter data in jlist from database according to some criteria... how can i do it.
any help would be nice...


You can read about building a JList here- http://download.oracle.com/javase/6/docs/api/javax/swing/JList.html

You can get the ResultSet data into a Vector and then pass it on to the constructor of the JList or you can use setListData as well.


Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: populate jList with database values....