You create subclasses of the JComponent
class so that you can shadow the
paint
method of the JComponent
class. For example, you might
define the Meter
class, anticipating that your new class will evolve
into a meter display.
*------------------------* *-----------------------* | Meter class | | JComponent Class | | | extends | | | You supply a shadowing |---------->| Java supplies a basic | | definition for paint | | definition for paint | *------------------------* *-----------------------*