Java GUI Framework Question:
Download Questions PDF

How to (de)iconify a window?

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 Interview Questions And Answers PDF

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?