Point point = new Point(event.x, event.y); for (int i=0; i<items.length; i++) { if (items[i].getBounds().contains(point)) { String string = items[i].getToolTipText(); if (string != null && !string.equals(current)) { super.setToolTipText(string);
if (items != null) { Point point = new Point(event.x, event.y); for (int i=0; i<items.length; i++) { if (items[i].getBounds().contains(point)) { String string = items[i].getToolTipText(); if (string != null && !string.equals(current)) { super.setToolTipText(string); } return;
void mouseHover(Event event) {	String current = super.getToolTipText();	if (toolTipText == null) {		Point point = new Point(event.x, event.y);		for (int i=0; i<items.length; i++) {			if (items[i].getBounds().contains(point)) {				String string = items[i].getToolTipText();				if (string != null && !string.equals(current)) {					super.setToolTipText(string);				}				return;			}		}		if (current != null) super.setToolTipText(null);		return;	}	if (!toolTipText.equals(current)) {		super.setToolTipText(toolTipText);	}}