Search code examples
javaswinguser-interfacejpanelfade

Fading Jpanels in and out in a JFrame


I would like to make a game with multiple JPanels in a single global JFrame. I would like to switch these JPanels but with a nice animation like fade in and fade out. How would you be able to fade a JPanel out, switch the JPanel to a new one, and fade the new in (preferably without an external library)?

Thanks a lot


Solution

  • Maybe http://filthyrichclients.org/
    has some nice ideas and examples(online) to get started. It contains many swing animation details.