public final class WindowsTextFieldUI
extends com.sun.java.swing.plaf.windows.WindowsTextFieldUI
TextFieldUI.
In addition to its superclass WindowsTextFieldUI, it uses a caret
that selects all text if the field gains focus after a keyboard
focus traversal.| Constructor and Description |
|---|
WindowsTextFieldUI() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.text.Caret |
createCaret()
Creates the caret for a field.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates a UI for a JTextField.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
The WindowsFieldCaret requires an extra pixel width.
|
create, getBaseline, getBaselineResizeBehavior, getPropertyPrefixcreate, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModelpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the text fieldprotected javax.swing.text.Caret createCaret()
createCaret in class com.sun.java.swing.plaf.windows.WindowsTextFieldUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicTextUICopyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.