The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Applet

1 reply on 1 page. Most recent reply: Oct 17, 2002 9:09 AM by Carsten F. Hansen

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
Youss

Posts: 3
Nickname: mounir
Registered: Oct, 2002

Java Applet Posted: Oct 16, 2002 6:56 AM
Reply to this message Reply
Advertisement
How can i stop an Animation when the Program still works under a FOR statement--->for (i=0;i<1000;e++).
I have Start Button
And Stop Button.
I want to clear directly the Animation, not untill the for-Statement finisched.


Carsten F. Hansen

Posts: 3
Nickname: cfh
Registered: Oct, 2002

Re: Java Applet Posted: Oct 17, 2002 9:09 AM
Reply to this message Reply
It might be possibel to use a 'labeled break statement'

your StopButton sets 'x' to 1

int x = 0;
stop:
for ( int .............)
{ .........
.........

if (x == 1)
break stop;
}

Just a possibility, I don't if it actually works.

Flat View: This topic has 1 reply on 1 page
Topic: appletviewer problems Previous Topic   Next Topic Topic: Need JNI help: adding jstrings to jobjectArray

Sponsored Links



Google
  Web Artima.com   

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