Add ToolTip to TabItem : ToolTip « SWT « Java Tutorial

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

public class TabItemToolTip{

public static void main (String [] args) {

  Display display = new Display ();
  Shell shell = new Shell (display);

  TabFolder folder = new TabFolder (shell, SWT.BORDER);
  folder.setSize (200, 200);
  TabItem item0 = new TabItem (folder, 0);
  item0.setToolTipText ("TabItem \n toolTip"); ();
  while (!shell.isDisposed ()) {
    if (!display.readAndDispatch ()) display.sleep ();
  display.dispose ();

17.73.1.Add ToolTip to Shell Window
17.73.2.Add ToolTip to ToolItemAdd ToolTip to ToolItem
17.73.3.Add ToolTip to TabItem
17.73.4.Create fake tool tips for items in a tableCreate fake tool tips for items in a table
17.73.5.Show a tool tip inside a rectangleShow a tool tip inside a rectangle