File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Can't figure out why my Line shape won't re-size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Can Watch "Can New topic

Can't figure out why my Line shape won't re-size

kenny gill
Ranch Hand

Joined: Mar 12, 2012
Posts: 54
'm making a drawing applet and I just can't get my line shape to re-size. Rectangle and oval re-size just fine but not line. I believe I have the correct code for the method of re-size to allow line to be re-sized but it just will not work. I hope someone can help me figure this out.

Here is the class:

Stevens Miller

Joined: Jul 26, 2012
Posts: 772

Doesn't anyone write comments anymore?

kenny, that's a lot of code to read and debug. Can you pare it down to the least number of lines that still exhibit your problem? Often, merely doing that will reveal a solution and, if it doesn't, it will make it easier for us to help you out.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> 'm making a drawing applet....

you missed the opening'I' in your copy/paste
I agree. Here's the link:
subject: Can't figure out why my Line shape won't re-size
jQuery in Action, 3rd edition