-
Bug
-
Resolution: Unresolved
-
P4
-
8u20
-
Windows 7 Pro SP1 x64, JDK8 build 129
I don't know whether this is a bug or a feature. But if it's a feature, it's pretty bad one.
In my application, I display a Popup window with features complementing a TextField (imagine a bunch of Toggles denoting the field's content type). The popup visibility is bound to the text field's focus property so it stays on screen only when user needs it. It also keeps track of the field's position changes so it stays well positioned each time user moves the application window.
Whenever the text field gains focus, the field's on-screen position is required in order to place the popup correctly. I use the field's Node.localToScreen(Point2D) method for this.
If I have the field focused and minimize the application window, the field losts its focus and the popup closes.
Now -- If I decide to restore the window again, the field regains its focus but its localToScreen() method returns negative numbers somewhere around -31000 which makes the popup reappear somewhere in the outer space.
In my application, I display a Popup window with features complementing a TextField (imagine a bunch of Toggles denoting the field's content type). The popup visibility is bound to the text field's focus property so it stays on screen only when user needs it. It also keeps track of the field's position changes so it stays well positioned each time user moves the application window.
Whenever the text field gains focus, the field's on-screen position is required in order to place the popup correctly. I use the field's Node.localToScreen(Point2D) method for this.
If I have the field focused and minimize the application window, the field losts its focus and the popup closes.
Now -- If I decide to restore the window again, the field regains its focus but its localToScreen() method returns negative numbers somewhere around -31000 which makes the popup reappear somewhere in the outer space.
- blocks
-
JDK-8088276 Scene Builder's popup windows get badly positioned on application restore in Windows
- Closed
- relates to
-
JDK-8095779 Invalid focus behavior when minimizing application using its taskbar icon (Windows)
- Closed