File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes listModel problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "listModel problem" Watch "listModel problem" New topic

listModel problem

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i'm trying to populate a JList: if i do it directly like this:

it works fine; but if i use this method:

and try to call it like this:

the JList doesnt populate.
What am i doing wrong?
thanks in advance

java amateur
I agree. Here's the link:
subject: listModel problem
It's not a secret anymore!