Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Rotated JButton

843806Nov 17 2008 — edited Nov 19 2008
Hi,
I need to create a subclass of JButton in which I can rotate the button on an arbitrary angel.
I overrode the paint in MyJButtonUI to rotate, but I have some problems.
After doing the rotation work for borders, part of the button that is out of the old position of the button is clipped.
Is there a way to change clipping rectangle?
Or is there a better way to create a rotating button?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2008
Added on Nov 17 2008
4 comments
1,719 views