...you would click with the mouse, or press Enter, to complete the code. The result is then as follows:
In other words, you get the code you requested from the Code Completion box and the cursor lands in between the brackets.
However, if—instead of pressing Enter (or using the mouse click)—you press the semi-colon on your keyboard, you get this instead:
Hurray, a free semi-colon! (It also works with commas and periods, in the same way.) And the cursor still lands between the brackets! So you can start coding right away and you don't need to add a semi-colon afterwards.
It sounds like a really small thing, but it is really very powerful. If you look up page 98 of the 2nd edition of the NetBeans IDE Field Guide, you will find this code completion trick, as well as a few others. (In fact, the whole of chapter 5, about editing and refactoring in NetBeans IDE is very cool. Loads of little bits of information that you might not know about.)
And in other news, Wouter van Reeven, who I mentioned a few times in the last few blog entries, has begun blogging some very cool introductory topics on the OpenOffice.org API: Getting started with the OpenOffice.org API part I: connecting to OpenOffice.org and Getting started with the OpenOffice.org API part II : some basic Writer operations. These blog entries, and anything else he's going to be writing, are absolutely crucial if you're getting started with the OpenOffice.org API. And even if you're more advanced, there's bound to be info that you're not aware of that you'll find in Wouter's blogs.