NetBeans Platform Cookbook Chapter 02

User Interface


NetBeans provides stable, tested and strong user interface framework for free. You can use prepared infrastructure of windows that can be moved, docked and knowing how to store own state. All is build on pure swing so you can integrate your swing components.

Menu, toolbar and context menu are built declaratively without coding. Even that work makes some wizard for you. You can create simple and complex dialogues by simple way, show progress of long action, integrate settings for your module into Option window, format log output, edit properties and visualize structures of your data. For all that you can integrate actions.

You are able to use HTML editor, editor for other languages or build your custom editor for language. The infrastructure of NetBeans editor works for you again.

Useful classes are provided by these modules:

  • Windows System API
  • Dialogs API
  • Output Window
  • Explorer and Property Sheet API
  • Options Dialogs and SPI
  • Progress UI
  • MultiView Windows

There are mode names for quick reference. Modes are containers or areas where your windows can be docked. You are allowed create your own mode.

Sections by used API


Example sources


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo