jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java
changeset 12396 79c64c6eb61e
parent 12047 320a714614e9
child 12398 8e4c529b8184
--- a/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Wed Apr 04 20:32:39 2012 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Thu Apr 05 18:27:16 2012 +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();