public Graphics getGraphics()Creates a graphics context for this component. This method will return null if this component is currently not displayable.
Returns:
a graphics context for this component, or null if it has none
Since:
JDK1.0
See Also:
paint(java.awt.Graphics)