title: Changing a JLabel's Value from a JSlider's Value
body: <p>I have a single JPanel that contains a JSlider and a JLabel. I want to configure it so that when the JSlider's value is being changed by the user, that new value is reflected by the JLabel.</p>
  
  <p>I understand that I can fire ChangeEvents with the Slider, but I don't know how to add a ChangeListener to the JLabel. Here's a snippet of my code.</p>
  
  <pre><code>scaleSlider.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent event)
      {
          int currentTime = ((JSlider)event.getSource()).getValue();
          doSomething(currentTime);
          fireStateChanged(event);
      }
  
  JLabel timeValue = new JLabel("Time: " + scaleSlider.getValue());
  timeValue.add??? 
  </code></pre>
  
  <p>(I don't know what to do here now to reflect the changes in the slider)</p>
  
  <p>Am I going in the right direction with this? Thanks in advance for your help.</p>