JDK-8271054 : [REDO] Wrong stage gets focused after modal stage creation
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: openjfx17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2021-07-21
  • Updated: 2022-07-13
  • Resolved: 2022-03-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx17.0.4Fixed
Related Reports
Relates :  
Relates :  
Description
When a MODAL stage is created as the owner of previous stage after a Dialog/Alert, the wrong stage is focused.

Steps to reproduce:

1) Run the sample
2) Press the "Click Me!" button
3) Answer YES on the Alert

The primary stage is brought to front instead of the stage with the button (it's the owner of the last stage).


Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jfx17u/pull/63 Date: 2022-06-27 08:24:02 +0000
27-06-2022

Changeset: c6069d68 Author: Thiago Milczarek Sayao <tsayao@openjdk.org> Date: 2022-03-09 14:15:27 +0000 URL: https://git.openjdk.java.net/jfx/commit/c6069d6845df4b90cca226e2b3dff49e3b48d8ac
09-03-2022

NOTE: this fix will need to be redone so that it doesn't reintroduce JDK-8240640 or JDK-8269429.
12-10-2021

This bug is not yet actual. The proposed fix for JDK-8240640 is to backout the original fix for JDK-8227366 at which time this bug will be ready. [~pbansal] Please assign it back to [~tsayao] once the fix for JDK-8240640 is integrated.
21-07-2021