This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
Get selected value from a JList
How to bind a JList to a Bean class property
Please Help: JList selectable options from 'name' field from each object in a HashMap
Regarding JList- Combobox Swing