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

Custom cursors not working properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7u6
    • fx2.1, 7u6
    • javafx
    • None
    • Windows

      I am trying to replace the default cursor with a custom cursor in my Scene. In doing so I noticed two issues:
      1.In custom cursor size of the underlying image is modified which looks ugly if the image is small.
      2. If two windows (stages) whose respective scenes have a custom cursor are opened and placed side by side, moving quickly between these a couple of times changes the cursor to default. In such a case if you move the cursor to window title and back, it regains its custom shape. It does not matter whether the these cursors are same or different from each other.
      Steps to reproduce:
      1. Unzip the attache file and run the application.
      2. Click on the 'Open Table' button to open a table view.
      3. Notice that the cursor has a custom image and the same image is the source of the imageView node added after the 'Add' button at the bottom. Sizes of the cursor is much larger than the image in the image view and it looks ugly. Modifying the size of the image for cursor does not help either.
      4. Open another window by clicking 'Open Table' button on the parent window.
      5. Place these two windows side by side and move quickly between two. The behavior described in #2 above is observed

            psafrata Pavel Ĺ afrata
            abrarjfx Arvinder S Brar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: