Synthetica swing theam does not load properly

I am using Synthetica swing themes for an application, there is an option for the user that can be used to change the theme, although the applied theme I have to minimize or enlarge the window in order to apply the theme correctly. Can anyone tell me why this is the case.


source to share

1 answer

if you want to change Swing Look and Feel at runtime then you need to call

SwingUtilities#updateComponentTreeUI(JFrame / JDialog / JWindow)




All Articles