The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Need help at jList

Posted by Bundesrichter on November 03, 2001 at 6:22 AM

Hi everyone!

I got the following problem:

I have a vector "result" where I store search-results. These results are objects! Each object has a title as a String. Now I want to display these result in a JList. I tried it with
- jList1.setListData(result);
which looks like adresses of the objects...
- DefaultListModel lm = new DefaultListModel();
list = new JList(lm);
with the same result as above...

I need to display the titles of the objects.
I want to select one object and go ahead with working on it.

Is someone able to help me?

Thx in advance

  • Solved! Bundesrichter November 05, 2001 at 5:51 PM (0)

Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us