|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.awt.Component
![]()
![]()
![]()
java.awt.Container
![]()
![]()
![]()
javax.swing.JComponent
![]()
![]()
![]()
javax.swing.text.JTextComponent
![]()
![]()
![]()
javax.swing.JTextField
![]()
![]()
![]()
javax.swing.tree.DefaultTreeCellEditor.DefaultTextField
, MenuContainer
, Serializable
, Accessible
, Scrollable
, SwingConstants


public class DefaultTreeCellEditor.DefaultTextField

TextField used when no editor is supplied.
This textfield locks into the border it is constructed with.
It also prefers its parents font over its font. And if the
renderer is not null and no font
has been specified the preferred height is that of the renderer.
| Nested Class Summary |
|---|
Nested classes/interfaces inherited from class javax.swing.JTextField ![]() |
|---|
JTextField.AccessibleJTextField |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent ![]() |
|---|
JTextComponent.AccessibleJTextComponent |
Nested classes/interfaces inherited from class javax.swing.JComponent ![]() |
|---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container ![]() |
|---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component ![]() |
|---|
Component.AccessibleAWTComponent |
| Field Summary | |
|---|---|
protected Border |
border
Border to use. |
Fields inherited from class javax.swing.JTextField ![]() |
|---|
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent ![]() |
|---|
DEFAULT_KEYMAP |
Fields inherited from class javax.swing.JComponent ![]() |
|---|
accessibleContext |
Fields inherited from class java.awt.Component ![]() |
|---|
BOTTOM_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants ![]() |
|---|
BOTTOM |
Fields inherited from interface java.awt.image.ImageObserver ![]() |
|---|
ABORT |
| Constructor Summary | |
|---|---|
DefaultTreeCellEditor.DefaultTextField
Constructs a DefaultTreeCellEditor.DefaultTextField object. |
|
| Method Summary | |
|---|---|
Border |
getBorder
Overrides JComponent.getBorder to
returns the current border. |
Font |
getFont
Gets the font of this component. |
Dimension |
getPreferredSize
Overrides JTextField.getPreferredSize to
return the preferred size based on current font, if set,
or else use renderer's font. |
void |
setBorder
Sets the border of this component. |
Methods inherited from class javax.swing.JTextField ![]() |
|---|
addActionListener |
Methods inherited from class javax.swing.text.JTextComponent ![]() |
|---|
addCaretListener |