wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Resizing, Dragging and Rotating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resizing, Dragging and Rotating" Watch "Resizing, Dragging and Rotating" New topic
Author

Resizing, Dragging and Rotating

Jonathan Johansen
Greenhorn

Joined: Aug 04, 2009
Posts: 8
Hello everyone! I will try to explain myself and I apologize ahead of time in case I don't accomplish it(English is not my first language).
Well, I am trying to create a component which can be rotated, re-sized and dragged (almost got it working). The problem is the following, I re-size it and it re-sizes as much as I drag it, however, it need to re-size to the size of the diagonal so when it rotates is still visible. If you were so kind to compile the code I have attached and see it working so you get a better idea of I am saying. Thanks everyone for your time and help!


This is my main class



This is the class definition of the component that is rotated



This is the MouseListener

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resizing, Dragging and Rotating
 
Similar Threads
Drawing lines between JPanels/JInternalFrames
Magnifying only a part of the image
"Drawing" Points on screen
Link two JPanel's with a line
Scrolling Components