Example usage for java.awt Point setLocation

List of usage examples for java.awt Point setLocation

Introduction

In this page you can find the example usage for java.awt Point setLocation.

Prototype

public void setLocation(Point p) 

Source Link

Document

Sets the location of the point to the specified location.

Usage

From source file:Main.java

public static void main(String[] args) {
    Point p = new Point();

    p.setLocation(new Point(2, 3));
    System.out.println(p.toString());
}