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.
public final Graphics createWindowGraphics()
Returns a Graphics object that can be used to draw in the entire window for the control.
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.