Java Reference
In-Depth Information
When there is a warning in our code, NetBeans will alert us in two ways: it will
underline the offending line with a squiggly yellow line, and it will place the icon
shown below in the left margin of the offending line.
The light bulb in the icon indicates that NetBeans has a suggestion on how to fix the
problem, moving the caret to the offending line and hitting Alt+Enter will result in
NetBeans offering one or more ways of fixing the problem.
Similarly, when there is a compilation error, NetBeans will underline the offending
line with a red squiggly line, and place the icon shown below on the left margin of
said line.
Again the light bulb indicates that NetBeans has suggestions on how to fix the
problem. Hitting Alt+Enter in the offending line will allow us to see the suggestions
that NetBeans has.
NetBeans not only provides visual cues for errors in our code, it also provides other
cues, for example, placing the caret next to an opening or closing brace will highlight
both the opening and closing brace, as shown in the doSomething() method in the
above screenshot.
 
Search WWH ::




Custom Search