NetBeans preferences and the Options panel

The key to managing preferences is two-fold: NbPreferences and the Options panel. NbPreferences is the means by which preferences are stored and loaded, and the options panel is the means by which the user is presented with a user interface for editing those preferences. We'll start by looking at how to add an Options panel, which will lead naturally to the NbPreferences discussion. Next is the NetBeans Options window:

In the preceding window, we can see the two types of Options panel--primary and secondary. A primary Options panel is represented by icons across the top: General, Editor, Fonts & Colors ...

Get Java 9: Building Robust Modular Applications 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.