Paints this component.
This method is called when the contents of the component should
be painted in response to the component first being shown or
damage needing repair. The clip rectangle in the
Graphics parameter will be set to the area
which needs to be painted.
Subclasses of Component that override this method need not call
super.paint(g).
For performance reasons, Components with zero width or height
aren't considered to need painting when they are first shown,
and also aren't considered to need repair.
Parameters: g - the graphics context to use for painting See Also: JMDIMenuBar.update since: JDK1.0 |