Netbeans Plugin Development Tutorial

NetBeans, an Integrated Development Environment (IDE) for the development of JAVA, C++ and Ruby on Rails programs, can be used to expedite the development of all types of web programs, including plugins. Plugins, which are software modules that add features and functionality to a web page or other software program, can be made easily with NetBean's wizards. These wizards, combined with NetBeans' drop-in graphical user interface (GUI) components, will let you not only create custom plugins but plugins that are easy and fun to use.

Instructions

    • 1

      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.

    • 2

      Type in "FirstPlugin" in the "Project Name Field" within the "Name and Location" wizard. Click the "Next" button.

    • 3

      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.

    • 4

      Right click the " project icon" and select "Action." Click the "Next" button in the "New Action" wizard.

    • 5

      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.

    • 6

      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.

    • 7

      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.

Learnify Hub © www.0685.com All Rights Reserved