void (AWTEvent event) { if (event.getID() == MouseEvent.MOUSE_MOVED && !myMacScrollbarHidden && myMacScrollbarFadeLevel == 0) { // user is moving inside the scrollpane of the scrollbar and fade-out hasn't started yet Container scrollpane = SwingUtilities.getAncestorOfClass(JScrollPane.class, scrollbar); if (scrollpane != null) { Point loc = ((MouseEvent)event).getLocationOnScreen(); SwingUtilities.convertPointFromScreen(loc, scrollpane); if (scrollpane.contains(loc)) { startMacScrollbarFadeout(); } } } }