The Artima Developer Community
Sponsored Link

Java Answers Forum
Running thread in JFrame using Jpannel

1 reply on 1 page. Most recent reply: Oct 5, 2005 11:29 PM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Afzal Shah

Posts: 1
Nickname: karam
Registered: Oct, 2005

Running thread in JFrame using Jpannel Posted: Oct 5, 2005 11:45 AM
Reply to this message Reply
Advertisement
Dear Programmers,
I have a problem in my 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..
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 procedure(i am practising on java more then two years).
thanks for this act of favour................


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Running thread in JFrame using Jpannel Posted: Oct 5, 2005 11:29 PM
Reply to this message Reply
> 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

Flat View: This topic has 1 reply on 1 page
Topic: kindly help me to explain this...please Previous Topic   Next Topic Topic: Problem in displaying unicode Character

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use