aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes problem in getPosition and setPosition...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in getPosition and setPosition......" Watch "problem in getPosition and setPosition......" New topic

problem in getPosition and setPosition......

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 928

code is working, my question is why and how we use getPosition() and setPosition(), however

System.out.println(this.getPosition()); this can be done using this also System.out.println(x);

and also is something wrong i m doing here to implement these two methods..?
I agree. Here's the link:
subject: problem in getPosition and setPosition......
Similar Threads
New to Java. Need some proformance suggestions
Java game loop problem with timimg
Bouncing balls
Problem in passing color as a parameter
Calling an applet from another class of the same package