RFR: 8296621: Stage steals focus on scene change [v4]

Thiago Milczarek Sayao tsayao at openjdk.org
Tue Dec 6 11:35:39 UTC 2022


On Tue, 6 Dec 2022 05:09:40 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

>> Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add new line
>
> tests/system/src/test/java/test/robot/javafx/scene/SceneChangeShouldNotFocusStageTest.java line 61:
> 
>> 59:     public static void initFX() throws Exception {
>> 60:         new Thread(() -> Application.launch(TestApp.class, (String[]) null)).start();
>> 61:         waitForLatch(startupLatch, 10, "FX runtime failed to start.");
> 
> With the changes made in #950, we have a new pattern for launch and exit.
> These two lines would be now:  `Util.launch(startupLatch, TestApp.class);`
> and similarly exit method would be : `Util.shutdown(stage);`
> and `waitForLatch` method can be removed.

Done.

-------------

PR: https://git.openjdk.org/jfx/pull/940


More information about the openjfx-dev mailing list