I have a swing application, that has its look and feel set to the custom L&F from the company at the main method, where the application is started. The problem is: This works for ALL frames and windows, but somehow it doesn't work for JDialogs.
I've even manually set the L&F during the initialization of the dialog, but still get the platform dependent L&F.
Looking for answers or bugs that might explain this behavior, I found this thread, that explains that the environment variables change the behavior of the UIManager, so I've set the variables swing.crossplatformlaf
and swing.systemlaf
to return my custom L&F, but still get the OS dependent L&F.
Is there something that I'm missing here? How can Swing configure a different L&F for just JDialogs? I'm having a different L&F on Linux and Windows because of this.
Any help would be appreciated.