Update LookAndFeel Values On The Fly
问题 I want to be able to update the LookAndFeel attributes of my Swing GUI on the fly. In this case, I have a simple Swing/Awt game running what starts out as the Nimbus LookAndFeel . At various points after start up I want to change (let us say) just one detail: the background color of my application. I can change the background color by doing this: for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info