Point.getLocation() has the following syntax.
public Point getLocation()
In the following code shows how to use Point.getLocation() method.
import java.awt.Point; /* www . j a v a 2 s .c o m*/ public class Main { public static void main(String[] args) { Point p = new Point(); p.setLocation(2.3D,3.3D); System.out.println(p.getLocation()); } }
The code above generates the following result.