Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert an array into Jlist

 
chopo carlos
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 4181
21
IntelliJ IDE Java Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic