Context Interfaces are a design pattern used to add behaviors to existing objects or to separate implementation from the main object.
Contains support classes for easier implementation of Context Interfaces.
A set of utility classes pertaining to the visual appearance of NetBeans.
API/SPI for UI related aspects of application.
The Actions.keyStrokeToString method has been added as a public API, to avoid duplication of the same logic in the editor.lib module. This method has identical semantics to the existing org.netbeans.editor.Utilities.Actions.keyStrokeToString method (which now delegates to the new Actions.keyStrokeToString), but is available without depending on the editor infrastructure.
Add the GraphicsUtils.configureDefaultRenderingHints(Graphics) method (with a new GraphicsUtils class), to allow configuration of standard anti-aliasing settings from custom JComponent.paint(Graphics) implementations. These standard incantations were previously duplicated extensively throughout the NetBeans codebase.
Add the DropDownButtonFactory.getArrowIcon method, to expose the HiDPI-enabled dropdown arrow icon for use by other modules.
Context Actions which provide
Action.SELECTED_KEY value will be presented as checkbox (menu) or toggle button (toolbar) and
will reflect the state of an underlying model bean property, tracking models in Lookup and updating to model changes. Similar support
was added for
enabled Action property.
All that was required to be implemented by individual Actions in their ContextAwareAction implementations, this allows to use just annotation for the same behaviour in most cases.
Clients can specify notification category. There are 3 default categories (Info, Warning, Error) but clients can also create a custom category using layer.xml
For general overview of the concepts of NetBeans action system and related UI elements, together with code samples, see chapter 5, of NetBeans Platform for Beginners by Jason Wexbridge and Walter Nyland.
Read more about the implementation in the answers to architecture questions.