Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Refreshing List Box with in a frame  RSS feed

 
Chandar S Vellithirumutha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
My application has a frame. With in the frame there is a list box. I have socket in the frame too. Basically i am reading the socket and removing the elements in the list box and creating new elements from the socket data. I am not able to see it immediately even though the code that adds the list elements is executed. How do I refresh the screen after updating the elements in the list box programmatically.
Appreciate your help....
Chandar
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi chandar,
u can try listname.updateUI() method.
call this method when u think ur UI should be refreshed
regards
deekasha

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!