File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in getPosition and setPosition......" Watch "problem in getPosition and setPosition......" New topic
Author

problem in getPosition and setPosition......

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 981
    
    2
Cpoint.java



Main.java



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: http://aspose.com/file-tools
 
subject: problem in getPosition and setPosition......
 
Similar Threads
Bouncing balls
New to Java. Need some proformance suggestions
Java game loop problem with timimg
Problem in passing color as a parameter
Calling an applet from another class of the same package