You might have seen it yourself if you had indented your code correctly. The long lines make it very difficult to read. Look in the old Sun style guide, which tells you about line lengths. Keep your lines not more than 80 characters, in monospaced type. I have corrected your code to shorten the lines and remove unnecessary whitespace and got the following:-You appear to be using five spaces per indentation level, which is too many; stick to three or four. And get your text editor to convert tabs to spaces automatically. I haven't corrected that problem. At least you aren't using tabs.Mat Dif wrote:. . . Trying all known fixes, I think perhaps a second or third set of eyes . . .
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Norm Radder wrote:How are you compiling the code? If you use the javac command it gives this error message with ^ showing where the error is:
Campbell Ritchie wrote:Please decide where you want the if. It might never be called where it is. If you want it called when something happens to the mouse, put the if into another method in the anonymous class and call that method from another method.
Where did that code come from? I can't find it.Norm Radder wrote:. . .
with the line 15 (or a close line) throwing the error:
There are three kinds of actuaries: those who can count, and those who can't.
