The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

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.

Message:

Freeze??

Posted by Jay on November 12, 2001 at 5:52 PM

What does "freeze" mean? Like an exception is thrown? I ran it and it looks ok except for a small catch with variable i in the while loop. It does go with the number of elements in the array.

I dont see what it has to do with drawString() or drawChars(). Your comments?


while (fnames[i-1] != null) {
if (i==curfile) g.setColor(Color.blue);
else g.setColor(Color.black);
g.drawString(fnames[i-1],10,i*20);
i++; here ^
}





Replies:

Sponsored Links



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