from http://java.sun.com/j2se/1.3/docs/api/index.html
getGraphics
public Graphics getGraphics()
Returns this component's graphics context, which lets you draw on a component. Use this method get a Graphics object and then invoke oeprations on that object to draw on the component.
Overrides:
getGraphics in class Component
Following copied from class: java.awt.Component 
Returns:
A graphics context for this component, or null if it has none.
See Also: 
Component.paint(java.awt.Graphics)