Appendix BCommon Idioms and Code Patterns in NetBeans

This appendix is a hodge-podge of useful coding patterns that are common in NetBeans—a cookbook of sorts.

B.1. Things You Do Differently in NetBeans Than in Plain Swing Code

There are some code idioms in NetBeans modules that need to be done differently than in a regular Swing application—either because there are convenience helper classes or, in some cases, because the code in question should work with NetBeans module classloaders or branding infrastructure.

Getting a localized string

image

In plain Java you would use ResourceBundle. NbBundle is similar; it provides better caching mechanisms than ...

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.