RotText and RotImage

How I can override the gainedSelection() and handleResize() to change the rotation angle of the RotText object and RotImage object?Thanks very much.

Try these updated definitions:
http://www.nwoods.com/forum/uploads/RotText.java
http://www.nwoods.com/forum/uploads/RotImage.java

yes,it works well.but another question:how I can get the RotText object to be rescale with selection handle?it seems to be rotate only now.

I suppose the natural thing would be to support resize handles, by calling super.gainedSelection instead of blindly adding a bounding handle, and by overriding handleResize to be smarter about how each resize handle drag is interpreted.

Or you could try to include setting the JGoText’s font size in the handleResize method, based on the distance of the special handle from the center.