The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


if i understand correctly...

Posted by Chin Loong on October 27, 2001 at 2:23 AM

you don't really leave classes and use another class, and come back.. what you do is call the method (static) of other classes or instantiate the class itself (HAS-A relationship) in the class that you're using.

if your line coordinates is in another class, create new methods in the other class that returns the coordinate in either Point or any other type of objects that desire, and then u can use those coordinates to draw the lines.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us