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

Popups not working properly after calling primaryStage.requestFocus() in applet mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • JavaFX 2.2 b15
      Java Plug-in 10.6.1.255
      Using JRE version 1.7.0_05-b05 Java HotSpot(TM) Client VM
      Win, Mac

      Steps to reproduce:

      Run the attached sample as applet

      - Hold the mouse over the button
      - Result: The popup never hides again, resulting into:

      java.lang.IllegalStateException: The window must be focused when calling grabFocus()
      at com.sun.glass.ui.Window.grabFocus(Unknown Source)
      at com.sun.javafx.tk.quantum.WindowStage.grabFocus(Unknown Source)
      at javafx.stage.Window.increaseFocusGrabCounter(Unknown Source)
      at javafx.stage.PopupWindow.impl_visibleChanged(Unknown Source)
      at javafx.stage.Window$10.invalidated(Unknown Source)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
      at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
      at javafx.stage.Window.setShowing(Unknown Source)
      at javafx.stage.Window.show(Unknown Source)
      at javafx.stage.PopupWindow.showImpl(Unknown Source)
      at javafx.stage.PopupWindow.show(Unknown Source)
      at javafx.scene.control.Tooltip$TooltipBehavior$1.handle(Unknown Source)
      at javafx.scene.control.Tooltip$TooltipBehavior$1.handle(Unknown Source)
      at javafx.animation.Animation.impl_finished(Unknown Source)
      at com.sun.scenario.animation.shared.SingleLoopClipEnvelope.timePulse(Unknown Source)
      at javafx.animation.Animation.impl_timePulse(Unknown Source)
      at com.sun.scenario.animation.shared.AnimationPulseReceiver.timePulse(Unknown Source)
      at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(Unknown Source)
      at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      preloader: Stop progressCheck thread

            lnerad Ľubomír Nerád (Inactive)
            kiriljfx Kiril (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: