Java GUI Framework Question:

How to (de)iconify a window?

Tweet Share WhatsApp

Answer:

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().

Download Java GUI Framework PDF Read All 28 Java GUI Framework Questions
Previous QuestionNext Question
How to make sure a window is always on top of all other windows using AWT or Swing?How to replace/remove the icon in the title bar (window decoration) of a [J]Frame?