﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20771	[Patch] MainFrame created before setting look and feel and not updated	DevCharly	simon04	"In class `MainApplication`, the main frame is created before the look and feel is set.
And it is not updated after the look and feel have set.

This usually has no visual impact because the only component created before the L&F was set, is the `JRootPane` of the `JFrame`.
So the UI delegate of the `JRootPane` remains `MetalRootPaneUI`.

But FlatLaf 1.1 supports native window decorations (on Windows 10) and needs `FlatRootPaneUI` to initialize it.
https://github.com/JFormDesigner/FlatLaf/releases/tag/1.1

To fix this I'd like to suggest to update the mainFrame with following code after setting the L&F:
{{{
SwingUtilities.updateComponentTreeUI(mainFrame);
}}}
"	defect	closed	normal	21.04	Core		fixed		
