java - A class in Swing or AWT Library that has flexible size -



java - A class in Swing or AWT Library that has flexible size -

i'm looking class in javax.swing or java.awt gives flexible size object. name class myclass. when add together myclass mypanel, shaped objects lie within it. more specific, if draw rectangle, myclass's size of rectangle's, if draw circle, myclass's size of circle's, etc.

so far i've seen classes rectangular in shape: container, canvas, jlayeredpane, etc.

any suggestions?

given suitable layout, class implements shape interface candidate. can utilize createtransformedshape() method of affinetransform transform it, seen in example.

java swing awt

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -