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

@@ -5,6 +5,8 @@ FlatLaf Change Log
- ComboBox: Added UI property `ComboBox.buttonFocusedEditableBackground`. (issue
#1068)
- Dialog: Some client properties (e.g. `JRootPane.titleBarShowTitle`) did not
work before the dialog was made visible. (issue #1081)
- Popup: Fixed scrolling popup painting issue on Windows 10 when a glass pane is
visible and frame is maximized. (issue #1071)
- Slider: Styling `thumbSize` or `focusWidth` did not update slider size/layout.

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();