-
Notifications
You must be signed in to change notification settings - Fork 1
DevFaqWindowsComponentHowTo
Use File → New File wizard, Module Development category and Window Component item. It will generate all necessary background code for you and open GUI Builder to design UI of your own component.
-
Subclass of TopComponent is created. Design it just as you would a JPanel.
-
Simple subclass of
javax.swing.AbstractAction
in created and added to main menu. It’s implemented it to open your component like follows:
public class MyAction extends AbstractAction { public MyAction() { putValue (Action.NAME, "Open My Component"); } public void actionPerformed(ActionEvent ae) { new MyComponent().open(); } }
-
Declarative XML descriptions of component are created following declarative XML API principles.
TopComponents are part of the Windows API.
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqWindowsComponentHowTo , that was last modified by NetBeans user Marciowb on 2011-07-28T10:00:41Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-01-26, and needs to be reviewed.
Apache NetBeans is an effort undergoing incubation at The Apache Software Foundation (ASF).
Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
This wiki is an experiment pending Apache NetBeans Community approval.