org.jdesktop.swingx.plaf
Class PromptTextAreaUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
org.jdesktop.swingx.plaf.PromptTextUI
org.jdesktop.swingx.plaf.PromptTextAreaUI
public class PromptTextAreaUI
- extends PromptTextUI
PromptTextUI
implementation for rendering prompts on JTextArea
s
and uses a JTextArea
as a prompt component.
Methods inherited from class org.jdesktop.swingx.plaf.PromptTextUI |
contains, damageRange, damageRange, equals, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getEditorKit, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, hashCode, installUI, modelToView, modelToView, paint, paintPromptComponent, shouldPaintPrompt, toString, uninstallUI, update, viewToModel, viewToModel |
PromptTextAreaUI
public PromptTextAreaUI(TextUI delegate)
- Creates a new
PromptTextAreaUI
.
- Parameters:
delegate
-
getPromptComponent
public JTextComponent getPromptComponent(JTextComponent txt)
- Overrides
getPromptComponent(JTextComponent)
to additionally
update JTextArea
specific properties.
- Overrides:
getPromptComponent
in class PromptTextUI
- Returns:
- the adjusted prompt component
createPromptComponent
protected JTextComponent createPromptComponent()
- Returns a shared
JTextArea
.
- Specified by:
createPromptComponent
in class PromptTextUI
- Returns: