changeset 6450:0e800351fd4b

RT-26235: SplitPane in JFXPanel: Mouse cursor not changed Summary: Use N_ and W_RESIZE AWT cursors for V_ and H_RESIZE FX cursors in JFXPanel
author Anthony Petrov <anthony.petrov@oracle.com>
date Tue, 11 Mar 2014 22:16:07 +0400
parents c508ecd2723b
children e256204869fb
files modules/swing/src/main/java/javafx/embed/swing/SwingCursors.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/swing/src/main/java/javafx/embed/swing/SwingCursors.java	Tue Mar 11 10:43:11 2014 -0700
+++ b/modules/swing/src/main/java/javafx/embed/swing/SwingCursors.java	Tue Mar 11 22:16:07 2014 +0400
@@ -77,10 +77,12 @@
             case NE_RESIZE:
                 return Cursor.getPredefinedCursor(Cursor.NE_RESIZE_CURSOR);
             case N_RESIZE:
+            case V_RESIZE:
                 return Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR);
             case S_RESIZE:
                 return Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR);
             case W_RESIZE:
+            case H_RESIZE:
                 return Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR);
             case E_RESIZE:
 	        return Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR);
@@ -92,8 +94,6 @@
                 return Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR);
             // Not implemented, use default cursor instead
             case DISAPPEAR:
-            case H_RESIZE:
-            case V_RESIZE:
                 return Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
             case NONE:
                 return null;