title: Multiple JLabel Fade In Effect (one at a time)
body: <p>I can make a single <code>JLabel</code> fade in, but how do I make multiple labels fade in one after another? Here is my current code.</p>
  
  <pre><code>public void fadeIn(final JLabel jLabel) {
      jLabelList.add(jLabel);
      jLabelBackPanel.add(jLabelList.get(jLabelList.size() - 1));
      new SwingWorker&lt;Void, Void&gt;() {
          @Override
          protected Void doInBackground() throws Exception {
              int c = 0;
              for(int i = 0; i &lt; 255; i++) {
                  Thread.sleep(1000);
                  jLabel.setForeground(new Color(
                      jLabel.getForeground().getRed(),
                      jLabel.getForeground().getGreen(),
                      jLabel.getForeground().getBlue(),
                      c++));
              }
              return null;
          }
      }.execute();
  }
  </code></pre>
  
  <p>The above code will fade in about 9 labels at one time, then 9 more, etc. I can't figure out how to make one label wait until the last one is done fading in.</p>