• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating JLabel and code organization  RSS feed

 
Youssef Eid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you help me organize my codes order and create an updating JLabel? I tries using label.setText("Hello"); but it did not work. Thanks for the help in advance.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I corrected your code tags. (You need to select the code and then click the code button)
I tries using label.setText("Hello"); but it did not work.

setText() is indeed the correct way. However the code you posted does not call setText() anywhere.

GUI questions are best asked on the GUI forum. Moving...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!