title: swing: making a JProgressBar with a label superimposed on it?
body: <p>I would like to use a <code>JProgressBar</code> and augment it to print its current value as well as the graphical bar.</p>
  
  <p><img src="https://farm5.static.flickr.com/4051/4711936562_8849fcd17a_m.jpg" alt="progress bar"></p>
  
  <p>I'm guessing the best way to do this is to override paintComponent:</p>
  
  <pre><code>@Override protected void paintComponent(Graphics g) {
  // Let component paint first 
      super.paintComponent(g); 
  // paint my contents next....
  }
  </code></pre>
  
  <p>but I am not sure... any advice?</p>