wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Convert an array into Jlist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Convert an array into Jlist" Watch "Convert an array into Jlist" New topic
Author

Convert an array into Jlist

chopo carlos
Greenhorn

Joined: Dec 27, 2010
Posts: 4
Hi there i need some help, I am trying to create a GUI


That displays the elements from my array in Jlist inside the GUI


My array is Person [] person, I Have two persons in my array

How can i display this array in Jframe ?

I have done some researched, you can use a JList to do this not sure how to implemented


how do i convert my array into Jlist ?








Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4167
    
  21

There are a couple different ways to do this. The JList part of the Java Tutorial covers it pretty well:
Tutorial for Swing List components


Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Convert an array into Jlist
 
Similar Threads
beguinning mediator stuff
Updateable JList
converting integer to byte[]
how to pass the model to JList in netbeans5?
Setting JList Selections from String[]