Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how do a Label can be repainted  RSS feed

 
shaista zaidi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
somebody plz help.....i have to show contents of a text file in labels. and the file is to be refreshed after every 10 seconds. its workin fine with S.O.P but offcourse to repaint i should have graphics context.how can i do this.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shaista,
I don't understand the problem. Which of these routes are you thinking of:

1. Draw the text to a canvas using drawString?
Or
2. Use a TextArea which would require a call to setText?
Or
3. Use many labels which would require a call to setText for each one?
Manfred.
 
shaista zaidi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply .its the third one. there are many labels and i have to use setText.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!