title: Changing the Look and Feel changes the color of JTextPane?
body: <p>I had a <code>JTextPane</code> had a differen background and foreground color.Now when the L&amp;F is changed to Nimbus L&amp;F, my <code>JTextPane</code> 's color is changed.How come?Only this class is having such problem.While others works well.What is the problem?</p>
  
  <p>This is how i change L&amp;F :</p>
  
  <pre><code>for (javax.swing.UIManager.LookAndFeelInfo info : 
  
  javax.swing.UIManager.getInstalledLookAndFeels()) {
                  if ("Nimbus".equals(info.getName())) {
                      javax.swing.UIManager.setLookAndFeel(info.getClassName());
                      break;
                  }
              }
          } catch (ClassNotFoundException ex) {
              java.util.logging.Logger.getLogger(PlayBackVoice.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (InstantiationException ex) {
              java.util.logging.Logger.getLogger(PlayBackVoice.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              java.util.logging.Logger.getLogger(PlayBackVoice.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (javax.swing.UnsupportedLookAndFeelException ex) {
              java.util.logging.Logger.getLogger(PlayBackVoice.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          }
  </code></pre>
  
  <p>On the other hand, the color changed very well before setting this L&amp;F.
  Or these statements were working well:</p>
  
  <pre><code>     jtp.setBackground(Color.BLACK);
       jtp.setForeground(Color.WHITE);
  </code></pre>
  
  <p>Any idea what is wrong?</p>