This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Simple drawing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Simple drawing" Watch "Simple drawing" New topic
Author

Simple drawing

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Hi!

I can't get this simple drawing thing to work. I'm drawing a Line. But I want it to look like a rectangle. ( Rotated rectangle ) I can't get this to work. My math isn't what It should I guess because I can't get the rectangle to draw correctly. From two points I want to draw a rotated rectangle.

I must be able to move the line and grab hotpots in the end of the line and rotate it.
I have got it to work with plain rectangles but the line with border is harder.


SCJP1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple drawing