Start the NetBeans Integrated Development Environment. Click the "New Project" option from the File menu. Now click the "NetBeans Module" option from the "Categories" list and then "Module" from the "Project" list within the "Choose Project" wizard. Click the "Next" button.
Type in "FirstPlugin" in the "Project Name Field" within the "Name and Location" wizard. Click the "Next" button.
Type "com.originalwebURLname.module1" as the package base name in the "Code Name Base" text box in the "Basic Module Configuration" wizard. Click the "Finish" button.
Right click the " project icon" and select "Action." Click the "Next" button in the "New Action" wizard.
Fill out the "GUI Registration" wizard form. Select the "File" option from the "Category" drop-down list. Check the "Global Menu Item" check box. Select the "File" option from the "Menu" drop-down list. Select "Here - New Project" from the "Position" drop-down list box. Now check the "Global Toolbar Button" check box and then select the "Build" option from the "Toolbar" drop-down list. Select "Profile Main Project.... - HERE" option from the "Position" drop-down list to select the position of the button in the Netbeans IDE toolbar. Click the "Next" button.
Fill out the "Name, Icon and Location" wizard. Type "FirstPluginAction" in the "Class Name" text box. Type "FirstPlugin" in the "Display Name" text box. Click the "Browse" button to navigate to the location of your graphic file. Select the graphic from the appropriate directory. For this example, use a graphic file that is in the same directory as the FirstPlugin module. Click the "Finish" button.
Right click the "FirstPlugin" icon in the "Projects" directory. Click the "Install/Reload in Target Platform" option. Examine the toolbar of the Netbeans IDE and observe that the graphic in the graphic file you used is displayed in the NetBeans toolbar.