This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JList + Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JList + Vector" Watch "JList + Vector" New topic
Author

JList + Vector

jrookie
Greenhorn

Joined: Aug 20, 2002
Posts: 17
i make empty JList
like that
JList list=new JList();
and i get Vector after some actions
can i put Vector in this JList ?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"jrookie" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

JList has the setListData(Vector) method exactly for this purpose...

Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JList + Vector
 
Similar Threads
JList setListData problem
How to bind a JList to a Bean class property
Regarding JList- Combobox Swing
Get selected value from a JList
Please Help: JList selectable options from 'name' field from each object in a HashMap