Skip to content

Commit bf2227e

Browse files
committed
Dialog: some client properties (e.g. JRootPane.titleBarShowTitle) did not work before the dialog was made visible (issue #1081)
1 parent 465254c commit bf2227e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ FlatLaf Change Log
55

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

flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTitlePane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ protected void activeChanged( boolean active ) {
484484
}
485485

486486
protected void frameStateChanged() {
487-
if( window == null || rootPane.getWindowDecorationStyle() != JRootPane.FRAME )
487+
if( window == null || rootPane.getWindowDecorationStyle() == JRootPane.NONE )
488488
return;
489489

490490
updateVisibility();

0 commit comments

Comments
 (0)