IntelliJ Java IDE
The moose likes Swing / AWT / SWT / JFace and the fly likes problem in getPosition and setPosition...... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply 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: 702
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..?
 
 
subject: problem in getPosition and setPosition......
 
Threads others viewed
New to Java. Need some proformance suggestions
Calling an applet from another class of the same package
Problem in passing color as a parameter
Java game loop problem with timimg
Bouncing balls
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture