Creating a Window Component
See Also
A window component creates a window (also known as 'view') for a module. The IDE
provides the Window Component wizard to simplify the initial creation process.
To create a new window component:
- Right-click a module project and choose New > Window Component.
- In the Basic Settings page, you set the following:
- In the Name, Icon, and Location page, you have to set the following:
- Class Name. Specifies the name of the new Action and TopComponent classes.
- Icon. Specifies the icon that will accompany the window component. For example, you
will see the icon in the label of the window component. (Optional)
- Package. Specifies the name of the package where the class will be housed.
- After completing the wizard, you can do one or more of the following:
- Use the Form editor to design the window.
- Place the window component in a different position. In the layer.xml file,
tweak the Modes section.
- Add your own code to componentOpened() and componentClosed() to
specify what will happen when the window opens and closes.
- See Also
- About NetBeans Platform and Module Development
- About the NetBeans Platform
Legal Notices