Java javax.swing JToolTip fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JToolTip fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JToolTip.

The text is from its open source code.

Subclass

javax.swing.JToolTip has subclasses.
Click this link to see all its subclasses.

Constructor

JToolTip()
Creates a tool tip.

Method

voidaddMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component.
JComponentgetComponent()
Returns the component the tooltip applies to.
DimensiongetPreferredSize()
If the preferredSize has been set to a non-null value just returns it.
StringgetTipText()
Returns the text that is shown when the tool tip is displayed.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetForeground(Color fg)
Sets the foreground color of this component.
voidsetTipText(String tipText)
Sets the text to show when the tool tip is displayed.