src/macosx/classes/sun/lwawt/LWComponentPeer.java

Print this page

        

*** 614,623 **** --- 614,634 ---- Point locationInWindow = localToWindow(0, 0); return new Point(windowLocation.x + locationInWindow.x, windowLocation.y + locationInWindow.y); } + /** + * Returns the cursor of the peer, which is cursor of the target by default, + * but peer can override this behavior. + * + * @param p Point relative to the peer. + * @return Cursor of the peer or null if default cursor should be used. + */ + protected Cursor getCursor(final Point p) { + return getTarget().getCursor(); + } + @Override public void setBackground(final Color c) { final Color oldBg = getBackground(); if (oldBg == c || (oldBg != null && oldBg.equals(c))) { return;