• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to edit JLabel Text String at run time??  RSS feed

 
Michelle Wang
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all:
I google quite a while, also search this excellent forum, I need to edit JLabel's Text String at run time, like just right click or left click mouse, then I can edit/update JLabel's Text String, then persist my updating forever until next I change them.

Any guru can throw some light or gave some good example??
Thanks

sunnygirl
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Please change your name to something which appears to be a real name.

Have you been through the API for JLabel? Have you found any way to add a listener for the mouse, or how to set the text? Use ctrl-F to search through the small print, and you should find your solution.
 
Michelle Wang
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed my profile, but still not yet update.
tahnks
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your name has updated, thank you.

Have you had any success with searching the JLabel API yet?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!