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");
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
}
|