title: Making custom close and minimize button
body: <p>I have a decorated <code>JFrame</code>. I need to make close button and minimize button. What should I do?</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>public Startup()
  {
      setTitle("STARTUP");
      setSize(800,500);
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      setUndecorated(true);
      setLocationRelativeTo(null);
      setVisible(true);
  }
  </code></pre>