• Post Reply Bookmark Topic Watch Topic
  • New Topic

DefaultListModel gives error when clearing second time  RSS feed

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have a listbox attached to a defaultListModel. The problem is when the list box is selected the model cannot be cleared.This is my code



How do i deselect a list or solve this problem ??
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To solve the problem, the first thing to do is to investigate that "error" you mentioned. If it's an error message, then look at the stack trace to see where it occurred and start there. Or if it's some other kind of error, try to imagine what might have caused it. But don't expect that anybody else can investigate it based on solely what you wrote in this post, since you didn't provide any useful information.

However if you posted here on the theory that somebody else might be able to help, then you should provide some useful information. Read TellTheDetails (follow the link) for more information about that.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's a listbox? It's not AWT/Swing, so would I be correct in assuming that it's something out of SWT/JFace, which I've never used?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!