File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JList + Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JList + Vector
 
Similar Threads
Regarding JList- Combobox Swing
Get selected value from a JList
Please Help: JList selectable options from 'name' field from each object in a HashMap
JList setListData problem
How to bind a JList to a Bean class property