Search code examples
javaswingclockjlabel

How to change the text of a JLabel in a while loop


I want to make a clock That changes the text of JLabel and i am having trouble with getting the text to change.

Thanks Obiedog!!!!

Heres my code for the clock if that helps


Solution

  • Looking at the javadoc may help you.

    JLabel.setText().