|
Java™ by example!
|
|
|
How do I draw a rectangle?
 Use the method drawRect and specify x, y coordinates (top left) and width and height of the rectangle. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|