How Do I Insert Subprojects in NetBeans?

The NetBeans Integrated Development Environment, or IDE, is a programming environment for the Java programming language. NetBeans organizes Java programs into projects. One program may have several sub-projects that it depends on. For example, a program that deals with user interfaces may import a program that deals with database connectivity as a sub-project. You can easily configure sub-projects using the NetBeans project properties editor. This editor allows you to set sub-projects and configure other dependency issues.

Things You'll Need

  • Java Software Development Kit with NetBeans Integrated Development Environment (IDE) Bundle

Instructions

    • 1

      Load the NetBeans IDE by clicking on its program icon. When the program loads, navigate to “New/New Project” and select “Java Application” from the list on the right-hand side of the screen. Select a name for the project and press the “Enter” key. A new source code file appears in the NetBeans text editor. The source code file contains an empty main method.

    • 2

      Click the vertically-oriented “Projects” button located on the left-hand side of the source code file. A menu displaying the project and its files appears.

    • 3

      Right-click on the name of your project. A menu appears.

    • 4

      Click “Properties” in the menu. The “Project Properties” window appears.

    • 5

      Click “Libraries” from the left-hand column. The “Project Properties” window changes to reflect that you are now editing the “Libraries” for this project.

    • 6

      Click the button “Add Project.” An “Add Project” window appears. Select whatever sub-project you want this project to depend upon and press the “OK” button. The project name then appears under the list of sub-projects in the “Project Properties” window.

    • 7

      Click the button “OK” to save the changes and exit. Your project now has a sub-project that it depends upon.

Related Searches

References

Resources

Related Ads

Check It Out

7 Tips for Photographing Your Kids on Halloween