Hi George!
To begin with the most important
the edit butten is in the line where it says "posted November...", the pen and paper icon:
Your code has two things to be improved, one is easy:
in your action performed method it says:
time.setText("i");
in the i-loop.
The code does not crash - it only lasts 20 secs (minimum) until the frame displays a giant "i".
After you fixed that, you again will wait for 20 secs to see a giant "1" then.
The frame will not be updated just be setting the text to a different number. The loop loops, but the numbers in between are not displayed. Using repaint() doesn't help.
More difficult part:
You will need to put this Timer-loop into an own
thread.
There is also something strange with the layout, normally you add a panel to a frame and the button and label to the panel.
How did
Dory sing?
"Keep on swimming, keep on swimming, keep on swimming, swimming, swimming...".
Yours,
Bu.
[ November 04, 2006: Message edited by: Burkhard Hassel ]