Thursday 14 September 2017

Java Coordinate System

Cited from the Book Java How to Program

By default, the upper-left corner of a GUI component has the coordinates (0, 0).

The x-coordinate is the horizontal location moving from left to right. The y-coordinate is the vertical location moving from top to bottom.

Coordinates indicate where graphics should be displayed on a screen. Coordinate units are measured in pixels.

No comments:

Post a Comment