I am building a document layout editor in NetBeans Visual Library API, and I am looking for a way to let the user rotate a widget about it's center with the mouse. How would I go about adding this functionality?
UPDATE
I think I need to clarify, this is what I want to accomplish:
- User clicks on a Widget in my NetBeans Visual Library API based document layout editor
- User drags the mouse. As the user drags the mouse the Widget rotates about it's center
- User release the mouse button. The Widget remains in the rotated position.
I am not using an NetBeans Platform or an IDE.
JSpinnerwith domain-centric units is simple but effective. - trashgod