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

Setting Cursor on StackPane not working properly on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4
    • None
    • 7u21
    • javafx
    • Mac-OSX, Windows XP/7 32/64 bit.

    Description

      Hi,

      I applied the bellow code to apply Close-Hand Cursor on the StackPane on mouse-Move event but when we move mouse over StackPane it seams for certain region it is not showing the Open-Hand cursor even though the pointer of mouse moved over StackPane.

      Here is the code.

      stackPaneObj.setOnMouseMoved(new EventHandler<MouseEvent>(){
                  @Override
                  public void handle(MouseEvent event) {
                      setCursor(Cursor.CLOSED_HAND);
                  }
              });

      Will send the Screen shot externally to the assigned person,as I do not have facility to attach file with this bug.

      One More issue with Cursor:--

      If I used Cursor.OPEN_HAND cursor type then it shows open hand cursor on Mac but on Windows it is showing closed hand in the place of open hand.





      Attachments

        Activity

          People

            psafrata Pavel Ĺ afrata
            rahuljfx Rahul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: