This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 1000
    
    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..?
 
GeeCON Prague 2014
 
subject: problem in getPosition and setPosition......