P R E V I O U S

JavaLessons.com

Building and testing Java software with Eclipse IDE 3/3

A short guide for beginners who want to work with Java in Eclipse

Double-clicking the tab of the (editor) window maximizes it or restores it.



Most errors are indicated while you're typing or, in any case, when you save the source, so by paying attention to the markers that will be there, you can solve this kind of errors before running.



Often you can fix an error by clicking the marker and double-clicking a suggestion, in this case 'import java.applet.Applet'.

Clicking a word in your source code and pressing Shift-F2 takes you to the documentation if it can be found : Window, Preferences, Java, Installed JRE's, Edit, etc. as shown in the image. You could point to locally installed documentation instead, btw.
The picture also shows how to install Sun's source code, which makes the help-text-popups a lot more interesting and enables you to explore the glorious inner workings of the standard library.

Typing a dot following a reference variable presents you with a list of methods, constants and, sometimes, variables to choose from. Typing just a dot implies this.

Round brackets trigger info about parameters expected.
If these last two, known as Content Assist, don't appear automatically, you can try Ctrl-space

P R E V I O U S

JavaLessons.com

Copyright © 2005-2006 SEMM (NL) All rights reserved. Author : Paul Hamaker
Contents and graphics contained throughout this web site have been registered.
Javatm is a Sun Microsystems, Inc. trademark.