|
Re: Running thread in JFrame using Jpannel
|
Posted: Oct 5, 2005 11:29 PM
|
|
> Dear Programmers, > I have a problem in my Application which > Application which is just a Desktop clock.Here we go! > I created a clock using JFrame Which runs fine. > 1- But as a experiment I ran that using JPanel and as a > result the clok gives current time but nither digital nor > analog(hands of clock moves)Which creating problems for > me..
Use the timer class (from the swing library - not the others coz there are 3 Timer classes if I'm not mistaken).
Have it update on a delay of int delay = 500; or at whatever interval you want (that would be every half second), this should be the easiest way to update your Panel or Frame.
> 2- I still cannot find out (that how a Java Application > that runs on windows platform) that how an application > minimmize in the right lower corner of windows.. > if any programmer read that please help me for the > e procedure(i am practising on java more then two > years).
I have no clue what you are talking about here.
> thanks for this act of favour................
Good luck, Kondwani
|
|