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().
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().
Previous Question | Next 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? |