-
Notifications
You must be signed in to change notification settings - Fork 0
Line
Tripazzy edited this page May 15, 2018
·
1 revision
The line class is used to put a line on the screen. It is used like this:
Line line = new Line(startx, starty, endx, endy);
Where:
startx
is the starting x of the line
starty
is the starting y of the line
endx
is the ending x of the line and
endy
is the ending y of the line.
You then treat it as any other Component, by using setBounds()
, etc. (note: if the line is added to a Window, you don't need to use setBounds()
.