RFR: 8313424: JavaFX controls in the title bar [v71]

Michael Strauß mstrauss at openjdk.org
Sun May 4 14:45:01 UTC 2025


On Sun, 4 May 2025 10:20:02 GMT, Cormac Redmond <duke at openjdk.org> wrote:

>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   simplify header area picking
>
> An even more concise example. Create c:\empty.css and run this, then hover over the window icons and note no style is applied (or is partially applied):
> 
> 
>  @Override
>     public void start(Stage primaryStage) {
>         BorderPane borderPane = new BorderPane();
>         borderPane.setTop(new HeaderBar());
>         Scene scene = new Scene(borderPane, 400, 300);
>         primaryStage.setScene(scene);
>         primaryStage.initStyle(StageStyle.EXTENDED);
>         primaryStage.show();
>         // Calling this once shown, breaks the window decoration (minimise/restore/close) CSS
>         scene.getStylesheets().add(Paths.get("C:\\empty.css").toUri().toString());
>         
>         // Even reproducible on a non-existing file
>         // scene.getStylesheets().add(Paths.get("C:\\i_dont_even_need_to_exist.css").toUri().toString());
>     }

Thanks for finding this bug, @credmond. It should be fixed now.

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

PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2849256832


More information about the openjfx-dev mailing list