Results 1 to 4 of 4
- 05-03-2011, 08:37 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
-
Clearly, from what little evidence you've shown, the variable 'y_pos' is not > 150 and thats why your program doesn't end..
-
- 05-04-2011, 01:13 AM #4
Member
- Join Date
- Mar 2010
- Posts
- 22
- Rep Power
- 0
From what I can tell you are approaching this in the wrong way.
The if statement is probably being checked before y_pos exceeds 150, and if it is not executed in repetition then the condition will never be fulfilled.
I'm not sure if an ActionListener is exactly what you need here, but it should probably point you in the right direction; look for something that will activate when y_pos exceeds 150 rather than checking the y_pos value at a random time.
Similar Threads
-
ending a csv
By paul1024 in forum New To JavaReplies: 2Last Post: 05-04-2011, 02:14 AM -
Making a program out of a Java Applet
By Bomber_Will in forum Java AppletsReplies: 1Last Post: 07-16-2009, 02:54 AM -
how to solve capital country program in java applet
By shadab in forum AWT / SwingReplies: 2Last Post: 08-27-2008, 02:40 PM -
how can i turn this java program to an applet
By anotsu in forum New To JavaReplies: 5Last Post: 03-10-2008, 11:48 PM -
Export to Java program, applet or c/c++
By fernando in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:55 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks