|
|
@ -637,10 +637,12 @@ public class WindowsTitlePane extends CustomTitlePane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean hideTitleBar() { |
|
|
|
private boolean hideTitleBar() { |
|
|
|
|
|
|
|
String title = titleLabel.getText(); |
|
|
|
|
|
|
|
if (title == null) title = ""; |
|
|
|
return windowHandle == 0 |
|
|
|
return windowHandle == 0 |
|
|
|
|| (getWindowDecorationStyle() == JRootPane.NONE |
|
|
|
|| (getWindowDecorationStyle() == JRootPane.NONE |
|
|
|
&& menuBar == null |
|
|
|
&& menuBar == null |
|
|
|
&& titleLabel.getText().length() == 0); |
|
|
|
&& title.length() == 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private class TitlePaneLayout implements LayoutManager { |
|
|
|
private class TitlePaneLayout implements LayoutManager { |
|
|
|