Hi! I've just spent full 4 days on this - to NO avail!!! All I want is a program that waits 1 minute before printing out the number of minutes its been active into a JFrame. IE after the first minute, the JFrame displays 1, after 2, it displays 2, and so on and so forth.
If I call the JFrame's constructor and updateNo methods from a differnt class, it works fine, so I know for a fact that its NOT anything to do with the JFrame. THE JFRAME IS FINE!!!
So, I've been trying to use a Thread, and I can get the program to sleep() for 1 second, but it never displays the JFrame until the program stops looping (ie, if i restrict it to say, 5 minutes), even tho I use setVisible(true), repaint(), etc. If you can get some code that actually WORKS, please post it!!! PLEASE!!! I BEG OF YOU!!!
PLEASE!!! napa1m
hansen@ithsite.com
If I call the JFrame's constructor and updateNo methods from a differnt class, it works fine, so I know for a fact that its NOT anything to do with the JFrame. THE JFRAME IS FINE!!!
So, I've been trying to use a Thread, and I can get the program to sleep() for 1 second, but it never displays the JFrame until the program stops looping (ie, if i restrict it to say, 5 minutes), even tho I use setVisible(true), repaint(), etc. If you can get some code that actually WORKS, please post it!!! PLEASE!!! I BEG OF YOU!!!
PLEASE!!! napa1m
hansen@ithsite.com