Object s = ev.getSource();  if (tabPane != ev.getSource()) { ev.setSource(tabPane); tabPane.dispatchEvent(ev);  ev.setSource(s); }
    public void mouseMoved(MouseEvent ev)    {      int tabIndex = tabForCoordinate(tabPane, ev.getX(), ev.getY());      setRolloverTab(tabIndex);    }