Control.createWindowGraphics

Overview | Methods | Fields | This Package | All Packages

Control.createWindowGraphics

Creates a Graphics object that can be used to draw in the entire window of the control rather than just the client area of the control.

Syntax

public final Graphics createWindowGraphics()

Return Value

Returns a Graphics object that can be used to draw in the entire window for the control.

Remarks

The foreground color and background color of the control determine the default values for the Graphics object. Use the dispose method of the returned Graphics object to free resources allocated by the Graphics object when the object is no longer needed. The Graphics object is valid only for the duration of the current window's message.