Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Synthetica swing theam doesn't load properly

I am using Synthetica swing themes for an application, there is an option for the user which can be used to change the theme, though the theme applied I have to minimize or maximize the window to apply the theme properly. Could anyone tell me why is that.

like image 755
Harsha Avatar asked Dec 04 '25 13:12

Harsha


1 Answers

if you want to change Swing Look and Feel on runtime, then you have to call

SwingUtilities#updateComponentTreeUI(JFrame / JDialog / JWindow)
like image 197
mKorbel Avatar answered Dec 07 '25 02:12

mKorbel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!