Chapter FourteenCode Completion

14.1. Introduction

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

image

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 ...

Get Rich Client Programming: Plugging into the NetBeans Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.