title: Resizing Behaviour of JFrame
body: <p>I have a JFrame and I would like to change its resizing behaviour.
  More specifically, when I drag the JFrame to the right I want it to resize as if I was dragging it from the diagonal. So when I drag it to the right, the default behavior is that only the width increases and when I drag it from the diagonal both the width and the height increase. How can I override the behaviour so that when dragging to the right behaves as I was dragging it from the diagonal.</p>
  
  <p>Many thanks in advanced.</p>