Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Hubert Klein Ikkink (aka Mr.Haki) - Communications Officer
 Mr.Haki's JBuilder Jar #33
See Also: JBuilder Papers

Illegal argument coloring
Typing code is a tedious job that has to be done right. But we all make mistakes and the sooner we are alerted of mistakes the fewer compiler errors we get.

In the JBuilder IDE Options dialog (Tools | IDE Options...) we can see a tab page named Colors. This page let's us define different colors for different elements in our Java source code. For example Java identifiers can have a different font style or size or color.

At the bottom of the element listbox we can see the item Illegal. This element occurs when for example we are using a class reference which isn't in scope, because we didn't include it in the import statement. If we change the color settings of this element to some bright and obvious colors, we can see these type of errors immediately instead of waiting for the compiler error.

Colors for illegal arguments

The following screenshot shows that the class reference to Button isn't in scope.

Source with illegal statement


This webpage © 1997-2009 by Bob Swart (aka Dr.Bob - www.drbob42.com). All Rights Reserved.