Can somebody inform me about the following:
I have multiple Primitives on the screen and if you
click with mouse on two primitives, you can draw a
line between them. After drawing some lines among the
primitives, program suddenly start throwing exception.
It was throwing ArrayIndexOutOfBoundsException in the
following if statement
if ( closest != null )
I put the code in Try and Catch block to keep the
program running. Can somebody gives me an idea why
after working well initially, program suddenly starts
throwing exception. I am attaching program.
Thanks
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
SimpleLine.java