javaswingjframeminimize

How to minimize a JFrame window from Java?


In my Java app, I have a JFrame window, how can I minimize it from my Java program ?


Solution

  • minimize with frame.setState(Frame.ICONIFIED)

    restore with frame.setState(Frame.NORMAL)