⟩ How to (de)iconify a window?
Before Java 1.2 you had to revert to native calls.
Since Java 1.2 you can use [J]Frame.setState().
Since Java 1.4 you can use [J]Frame.setExtendedState(), too. setExtendedState() provides more features than setState().