javax.swing.tree

Class DefaultTreeCellEditor.EditorContainer

public class DefaultTreeCellEditor.EditorContainer extends Container

This container that appears on the tree during editing session. It contains the editing component displays various other editor - specific parts like editing icon.
Constructor Summary
EditorContainer()
Creates an EditorContainer object.
Method Summary
voiddoLayout()
Lays out this Container, moving the editor component to the left (leaving place for the icon).
voidEditorContainer()
This method only exists for API compatibility and is useless as it does nothing.
DimensiongetPreferredSize()
voidpaint(Graphics g)
Overrides Container.paint to paint the node's icon and use the selection color for the background.

Constructor Detail

EditorContainer

public EditorContainer()
Creates an EditorContainer object.

Method Detail

doLayout

public void doLayout()
Lays out this Container, moving the editor component to the left (leaving place for the icon).

EditorContainer

public void EditorContainer()
This method only exists for API compatibility and is useless as it does nothing. It got probably introduced by accident.

getPreferredSize

public Dimension getPreferredSize()

paint

public void paint(Graphics g)
Overrides Container.paint to paint the node's icon and use the selection color for the background.

Parameters: g - the specified Graphics window