Something small that will compile, execute and show the problem.
Where are the values set to 0? try debugging the code by adding lots of println statements to show why and where the values are...
Type: Posts; User: Norm
Something small that will compile, execute and show the problem.
Where are the values set to 0? try debugging the code by adding lots of println statements to show why and where the values are...
I see that the code sets the starting position:
x = 100;
y = 400;
Short, Self Contained, Correct Example
What are you expecting to happen now? There needs to be a SSCCE
http://sscce.org/
for testing.
How can the posted code be compile and executed for testing? It needs a JFrame and a main() method.
That would be the 0,0 location. How does the code set the starting location?