Editing and Rendering Utilities
classes make use of cell renderers to display cells and cell editors
to modify cell values. The
CellEditor interface is
the basis for these editors, and the
DefaultCellEditor class provides a good
implementation of this interface. Unless you’re doing something
exotic, you should be able to base your cell editors on the
The CellRendererPane Class
This utility class
was built to keep renderers from propagating
to the components using renderer components such as
JList. If you played
around with creating your own renderers for any of the Swing
components that use them, you’ll recall that you did not use
this class yourself. Normally this pane is wrapped around the
renderer and the
paintComponent() methods below
are used to do the actual drawing. Developers will not normally need
to worry about this class.
CellRendererPane has only one property
containing its accessible context, shown in Table 27.5.
Table 27-5. CellRendererPane Property
- protected AccessibleContext accessibleContext
This field supports the
This class has only one constructor.
- public CellRendererPane()
This constructor creates a new renderer pane that has a
nulllayout and is not initially ...