Resize form objects in Java

Posted by PeerFull on Stack Overflow See other posts from Stack Overflow or by PeerFull
Published on 2009-12-16T23:43:27Z Indexed on 2010/05/02 8:37 UTC
Read the original article Hit count: 220

Filed under:
|
|

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.

I didn't find an high quality solution for doing this that solves this problem.

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about applet