Dialog: some client properties (e.g. JRootPane.titleBarShowTitle) did not work before the dialog was made visible (issue #1081)

This commit is contained in:
Karl Tauber
2026-01-30 12:58:17 +01:00
parent 465254c0da
commit bf2227e1b8
2 changed files with 3 additions and 1 deletions

View File

@@ -484,7 +484,7 @@ public class FlatTitlePane
}
protected void frameStateChanged() {
if( window == null || rootPane.getWindowDecorationStyle() != JRootPane.FRAME )
if( window == null || rootPane.getWindowDecorationStyle() == JRootPane.NONE )
return;
updateVisibility();