BuddyTextFieldUIpublic class PromptTextFieldUI extends PromptTextUI
PromptTextUI implementation for rendering prompts on
JTextFields and uses a JTextField as a prompt component.PromptTextUI.PainterHighlighterdelegate, promptComponent| Constructor | Description |
|---|---|
PromptTextFieldUI(TextUI delegate) |
Creates a new
PromptTextFieldUI. |
| Modifier and Type | Method | Description |
|---|---|---|
protected JTextComponent |
createPromptComponent() |
Returns a shared
JTextField. |
JTextComponent |
getPromptComponent(JTextComponent txt) |
Overrides
getPromptComponent(JTextComponent) to additionally
update JTextField specific properties. |
createUI, getBaselineResizeBehaviorclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, damageRange, damageRange, equals, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getEditorKit, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, hashCode, installUI, modelToView, modelToView, paint, paintPromptComponent, shouldPaintPrompt, toString, uninstallUI, update, viewToModel, viewToModelgetToolTipText2D, modelToView2D, viewToModel2Dpublic PromptTextFieldUI(TextUI delegate)
PromptTextFieldUI.delegate - public JTextComponent getPromptComponent(JTextComponent txt)
getPromptComponent(JTextComponent) to additionally
update JTextField specific properties.getPromptComponent in class PromptTextUIprotected JTextComponent createPromptComponent()
JTextField.createPromptComponent in class PromptTextUICopyright © 2018. All rights reserved.