471,354 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

draw a running graph


Hello,
I have problem with drawing running graph.
What I want to draw is:
I have an object O which as a real number r associated with it.
In the main() (in main class) i have a for loop which do something o
that object O to modify its real number r. The loop runs 5000 times.
I want to draw the real number r.
I can draw the grap but only after the for loop finished running.
What i want to do is to draw the grap while the for loop still runnin
(means that i have a running graph).
I believe this can be done using thread but I cannot figure out how t
do.
Can anyone give me some clue on how to do this?
Any idea is very much appreciated.
Thank you
-
nois
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Jul 17 '05 #1
1 4059
Hi!

What kind of drawing are you trying to do ? Is that inside an applet?
You may try to 'refresh' the display during the loop by calling the
'repaint' method (again, depending the type of draw you're trying to
do). Let me know more... Show me the piece of code....

Quiks
--------------
BTW: For those who have to do with monitoring, check the site:
http://www.metamindsolutions.com. It's a great multiplatform
monitoring solution and seems to have been adopted by large accounts
noise <no**********@mail.codecomments.com> wrote in message news:<no**********@mail.codecomments.com>...
Hello,
I have problem with drawing running graph.
What I want to draw is:
I have an object O which as a real number r associated with it.
In the main() (in main class) i have a for loop which do something on
that object O to modify its real number r. The loop runs 5000 times.
I want to draw the real number r.
I can draw the grap but only after the for loop finished running.
What i want to do is to draw the grap while the for loop still running
(means that i have a running graph).
I believe this can be done using thread but I cannot figure out how to
do.
Can anyone give me some clue on how to do this?
Any idea is very much appreciated.
Thank you.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by srinivas | last post: by
1 post views Thread by balakrishnan.dinesh | last post: by
9 posts views Thread by balakrishnan.dinesh | last post: by
2 posts views Thread by Lamis | last post: by
4 posts views Thread by hastalavista | last post: by
7 posts views Thread by =?iso-8859-1?Q?Vicente_Garc=EDa?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.