title: Java - Show a minimized JFrame window
body: <p>If a JFrame window is minimized, is there any way to bring it back to focus?</p>
  
  <p>I am trying to get it to click a certain point, then restore it.</p>
  
  <pre><code>            while (isRunning) {
                  start = System.currentTimeMillis();
                  frame.setState(Frame.ICONIFIED);
                  robot.mouseMove(clickX, clickY);
                  robot.mousePress(InputEvent.BUTTON1_MASK);
                  frame.setState(Frame.NORMAL);
                  Thread.sleep(clickMs - (System.currentTimeMillis() - start));
              }
  </code></pre>