title: Resize form objects in Java
body: <p>I have a Java applet, which is a form that draw shapes into it (Rect, Oval, Line).
  Each shape is represented by 2 points and can draw itself to the form.
  When the JApplet form resizes, I need to resize the shapes also while keeping the aspect ratio.</p>
  
  <p>I didn't find an high quality solution for doing this that solves this problem.</p>
  
  <p>Tried to write a solution from this, but it came up as lousy when tested, Can someone publish an example code for doing that please?</p>