Java ArrayLists into JList?

JList provides a constructor JList(Object) which you can call after unpacking your ArrayList.

JList provides a constructor JList(Object) which you can call after unpacking your ArrayList using toArray(): list = new JList(arr.toArray()).

Great post ... but now I have a new error... see my new topic :| – weka Jul 17 '10 at 0:02.

Constructor Summary JList() Constructs a JList with an empty, read-only, model. JList(ListModel dataModel) Constructs a JList that displays elements from the specified, non-null, model. JList(Object listData) Constructs a JList that displays the elements in the specified array.

JList(Vector listData) Constructs a JList that displays the elements in the specified Vector.

JList() Constructs a JList with an empty, read-only, model. JList(ListModel dataModel) Constructs a JList that displays elements from the specified, non-null, model. JList(Object listData) Constructs a JList that displays the elements in the specified array.

JList(Vector listData) Constructs a JList that displays the elements in the specified Vector.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions