Multi-part components such as JTabbedPane , JTable , and JTree override this method to return a string associated with the mouse event location. For example, each tab in a tabbed pane can have different tool-tip text. The default value is null, which tells the Swing system to choose a location. This table shows some examples that use tool tips and where those examples are described. Radio Buttons Uses a tool tip to provide instructions for a button.
Icons Uses a tool tip in a label to provide name and size information for an image.
How to Use Tabbed Panes Uses an argument to the addTab method to specify tool tip text for each tab. Handling Adds tool tips to a table using custom renderers and editors.