javax.swing
public class JToolTip extends JComponent implements Accessible
Nested Class Summary | |
---|---|
protected class | JToolTip.AccessibleJToolTip
Provides the accessibility features for the JToolTip
component. |
Constructor Summary | |
---|---|
JToolTip()
Creates a new JToolTip instance. |
Method Summary | |
---|---|
AccessibleContext | getAccessibleContext()
Returns the object that provides accessibility features for this
JToolTip component.
|
JComponent | getComponent()
Returns the component that the tool tip is associated with.
|
String | getTipText()
Returns the text displayed by the tool tip.
|
ToolTipUI | getUI()
Returns the current UI delegate for this component.
|
String | getUIClassID()
Returns the string suffix used to identify the UI class, in this case
"ToolTipUI" .
|
protected String | paramString()
Returns a string describing the attributes for the JToolTip
component, for use in debugging. |
void | setComponent(JComponent c)
Sets the component that the tool tip is associated with and sends a
{@link PropertyChangeEvent} (with the property name 'component') to all
registered listeners.
|
void | setTipText(String tipText)
Sets the text to be displayed by the tool tip and sends a
{@link PropertyChangeEvent} (with the property name 'tiptext') to all
registered listeners.
|
void | updateUI()
This method resets the UI used to the Look and Feel default. |
JToolTip
instance.JToolTip
component.
Returns: The accessible context (an instance of {@link AccessibleJToolTip}).
Returns: The component (possibly null
).
See Also: setComponent
Returns: The text (possibly null
).
See Also: setTipText
Returns: The UI delegate.
"ToolTipUI"
.
Returns: "ToolTipUI"
.
JToolTip
component, for use in debugging. The return value is guaranteed to be
non-null
, but the format of the string may vary between
implementations.
Returns: A string describing the attributes of the JToolTip
.
Parameters: c the component (null
permitted).
See Also: getComponent
Parameters: tipText the text (null
permitted).
See Also: getTipText