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

Mobile: Invisible arc responds to Key Events

    XMLWordPrintable

Details

    Description

      I am running the attached Arc Test on Emulator shipped with the SDK. When I am pressing '0', I am negating the 'visible' attribute of the Arc. So if it is visible it will become invisible and vice-versa. So when the Arc is initially visible, pressing '0' makes it invisible. Now when I press '0' again, Arc is made visible. Similarly, I am changing other parameters through other keys 1-9 and I am pressing those keys while the Arc is invisible. Subsequently when I make the arc appear, I see all these changes being reflected.

      This is incorrect since all these changes are made within KeyPress of the Arc and Arc is not supposed to respond to keyboard inputs when it is invisible. Same test works fine on Desktop where once Arc is made invisible, I can bring it back only by clicking on the blue rectangle.

      I reproduced it on WinXP - JavaFX SDK 1.0.1-b02 - 6u11. I used the emulator shipped with the SDK.

      To reproduce the bug, use javafxpackager and create a JAD file out of the attached application. Deploy the jad file onto the emulator using -Xjam:install option. Press different keys and you will see various parameters changing. Now press '0'. Arc will become invisible. Now press '0' again. If Arc comes back on the screen, the bug is reproduced.

      Attachments

        Activity

          People

            ailjin Artem Iljin (Inactive)
            pmohan Praveen Mohan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: