title: Adding animation/transitions to Java Swing containers
body: <p>I just wanted to know if there are Java libraries that allow for smooth transitions between Java Swing Containers.</p>
  
  <p>Suppose I have a Java GUI application with a single JFrame. Based upon user actions I would like to change the JPanel contained in my JFrame. Now, this I can do. However this change is instantaneous. What I would like to do is have a slow transition/animation so that it is not too hard on the users cognition.</p>
  
  <p><strong>Concrete Example:</strong></p>
  
  <p>Say the JFrame I have is<code>frame</code> having 2 buttons and I have two JPanel, <code>panel1</code> and <code>panel2</code>. Depending on which button the user clicked, I would replace the <code>frame</code> with either <code>panel1</code> or <code>panel2</code>. However I would like this change to be slow/animated (whatever you call it), a <code>fade-in</code> effect per se. So my question is </p>
  
  <p><strong>Is there some Java library that allows for such transitions?</strong></p>
  
  <p>If not, are there other desktop development language(s) that I can use for such transition. I already know of Javascript frameworks like JQuery that allow for this. But, I am looking for desktop development (if not Java then anything else is also fine).</p>