Share via


Component.print

Class Overview | Class Members | This Package | All Packages

Syntax

public void print( Graphics g )

Parameters
  • g
    the graphics context to use for printing.
Description

Prints this component. Applications should override this method for components that must do special processing before being printed or should be printed differently than they are painted.

The default implementation of this method calls the paint method.

The origin of the graphics context, its (00) coordinate point, is the top-left corner of this component. The clipping region of the graphics context is the bounding rectangle of this component.

See Also

paint