When the user types in a text-based editor, you can enable the editor to show the code completion box suggesting ways of completing the text that the user is typing. The code completion box can provide documentation for each entry, giving the user detailed information about the suggestions it offers.
For example, while the user types in a Java file, a code completion box shown in Figure 14.1 pops up.
Figure 14.1. Java code completion
In this illustration, the code completion box lists suggestions below the word that is being typed in the editor. The letters typed before the cursor in the editor ...