Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113477

Cleanup: eliminate caching platform cursors in javafx.scene.Cursor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • None

      javafx.scene.Cursor class maintains a cache of platforms cursors - Cursor.platformCursor.

      After the fix for for RT-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.

            lnerad Ľubomír Nerád (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: