final MouseEvent me = e.getMouseEvent();
String popupText = getValueStringAt(frame.getChrName(), e.getChromosomePosition(), e.getMouseEvent().getY(), frame);
if (popupText != null) {
final TooltipTextFrame tf = new TooltipTextFrame(getName(), popupText);
Point p = me.getComponent().getLocationOnScreen();
tf.setLocation(Math.max(0, p.x + me.getX() - 150), Math.max(0, p.y + me.getY() - 150));
UIUtilities.invokeOnEventThread(new Runnable() {
public void run() {
tf.setVisible(true);
}
});
return true;
}
return false;