title: Override minimize of JFrame
body: <p>I'm making a program with a logger. The logger has its own JFrame.
  I'm trying to override the reaction from clicking on the minimize-button of that frame.
  I would like the frame to either setVisible(false) or do the defaultCloseOperation (as i set that to hide earlier).</p>
  
  <p>How should I do this?
  Thanks in advance</p>