-
Bug
-
Resolution: Won't Fix
-
P4
-
fx2.0
-
None
javafx.scene.Cursor class maintains a cache of platforms cursors - Cursor.platformCursor.
After the fix for forRT-12541 embedded cursors are implemented and Cursor.platformCursor becomes ambiguous because it's not clear whether platformCursor should hold com.sun.glass.ui.Cursor or java.awt.Cursor.
Please consider eliminating caching platforms cursors in Runtime code and making Glass implement prefefined cursors to avoid recreating cursors.
JFXPanel are ready to return cached platform cursor - it's implemented in javafx.embed.swing.SwingCursors (awt.Cursor.getPredefinedCursor used).
Another suggestion is to update TKScene (setCursor(Object cursor)) and explicitly specify that cursor type is javafx.scene.Cursor.
After the fix for for
Please consider eliminating caching platforms cursors in Runtime code and making Glass implement prefefined cursors to avoid recreating cursors.
JFXPanel are ready to return cached platform cursor - it's implemented in javafx.embed.swing.SwingCursors (awt.Cursor.getPredefinedCursor used).
Another suggestion is to update TKScene (setCursor(Object cursor)) and explicitly specify that cursor type is javafx.scene.Cursor.
- relates to
-
JDK-8113344 Cursor / ImageCursor cache refactoring and fixes
-
- Closed
-