The Hover Help example shows how to implement custom tooltips and hover help support on a number of different SWT controls including Buttons, TableItems, ToolItems and TreeItems.
If the Example Launcher is installed, select the Hover Help item from the Standalone category and click Run.
Otherwise, install and run the example manually as per the
Standalone Examples Manual Setup instructions. The executable class is
org.eclipse.swt.examples.hoverhelp.HoverHelp
.
The example implements its own tooltip and hover help support. To see the custom tooltips in action, hover over an item or button in the UI. Notice that images appear in the left-hand corner of the tooltip, unlike standard SWT tooltips created using setToolTip() on those widgets that natively support them. To see the custom hover help in action, hover over an item or button in the UI as before until the tooltip is displayed. Without moving the pointer, hit F1. A new Shell will pop up with the extended hover help information for the UI element in question.