Share via


Graphics.drawRect

Class Overview | Class Members | This Package | All Packages

Syntax

public void drawRect( int x**, int** y**, int** width**, int** height )

Parameters
  • x
    the x coordinate of the rectangle to be drawn.
  • y
    the y coordinate of the rectangle to be drawn.
  • width
    the width of the rectangle to be drawn.
  • height
    the height of the rectangle to be drawn.
Description

Draws the outline of the specified rectangle. The left and right edges of the rectangle are at x and x + width. The top and bottom edges are at y and y + height. The rectangle is drawn using the graphics context's current color.

See Also

fillRect, clearRect