This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
JList : how to add one simple element to a existing list??
need help on JList
JList deselection problem
need help to set horizontal bar to JList
drag and drop DND click, then move??