Make sure you are setting the look and feel before it is visible (or else you'll be forced to update the component tree for every visible component). Before you call setVisible(true)
on your JFrame
, the following line should be present:
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");