public class

DefaultTreeCellEditor.EditorContainer

extends Container
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.tree.DefaultTreeCellEditor.EditorContainer

Class Overview

Container responsible for placing the editingComponent.

Summary

[Expand]
Inherited Constants
From class java.awt.Component
From interface java.awt.image.ImageObserver
Public Constructors
DefaultTreeCellEditor.EditorContainer()
Constructs an EditorContainer object.
Public Methods
void EditorContainer()
void doLayout()
Lays out this Container.
Dimension getPreferredSize()
Returns the preferred size for the Container.
void paint(Graphics g)
Overrides Container.paint to paint the node's icon and use the selection color for the background.
[Expand]
Inherited Methods
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver

Public Constructors

public DefaultTreeCellEditor.EditorContainer ()

Constructs an EditorContainer object.

Public Methods

public void EditorContainer ()

public void doLayout ()

Lays out this Container. If editing, the editor will be placed at offset in the x direction and 0 for y.

public Dimension getPreferredSize ()

Returns the preferred size for the Container. This will be at least preferred size of the editor plus offset.

Returns
  • a Dimension containing the preferred size for the Container; if editingComponent is null the Dimension returned is 0, 0

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