• Post Reply Bookmark Topic Watch Topic
  • New Topic

JList not showing updated values

 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The contents of a JList, which is in a JDialog are modified at run time.
but those updated items are not shown in display.

 
Darryl Burke
Bartender
Posts: 5155
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

Don't forget to use the code tags so your code retains its formatting.
 
Rob Camick
Ranch Hand
Posts: 2700
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you update the ListModel on the Event Dispatch Thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!