--- old/src/macosx/classes/sun/lwawt/LWComponentPeer.java 2012-03-31 23:06:04.092245300 +0400 +++ new/src/macosx/classes/sun/lwawt/LWComponentPeer.java 2012-03-31 23:06:03.839230800 +0400 @@ -616,6 +616,17 @@ 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();