NetBeans Platform Tutorial for Integrated Development Environments

The NetBeans Platform is a solid infrastructure for creating your own software development tools. However, beyond individual software development tools, an integrated development environment (IDE) assembles multiple disparate tools into a single coherent system. NetBeans IDE is itself an example of such a coherent system, though there are many others using the NetBeans Platform as their basis.

In this quick start, you are shown how to set up an integrated development environment on top of the NetBeans Platform.

Note: This document uses NetBeans IDE 8.0 and NetBeans Platform 8.0. If you are using an earlier version, see the previous version of this document.


Content on this page applies to NetBeans IDE 7.2

To follow this tutorial, you need the software and resources listed in the following table.

Software or Resource Version Required
NetBeans IDE version 8.0 or above
Java Developer Kit (JDK) version 7 or above

For troubleshooting purposes, you are welcome to download the completed tutorial source code.

Note: If you are new to the NetBeans Platform, do some background reading before diving into this tutorial. In particular, read the Modules API Reference document, which explains what modules are and provides some context for this tutorial, while noting that there is an extensive Reference Material section on the NetBeans Platform Learning Trail.

Creating a Generic Application Basis

We start by creating a new NetBeans Platform application as a starting point for our geospatial system.

  1. Choose File | New Project and then choose NetBeans Modules. Select "NetBeans Platform Application":

    step 1 - 1

    Click Next.

  2. Name your new application "MyIDE" and specify a folder on disk for storing it:

    step 1 - 2

    Click Finish. The new project appears as follows in the Projects window:

    step 1 - 3

  3. Right-click the application and choose Run. The application deploys and you should see this:

    step 1 - 4

  4. Explore the menus and toolbars in the application and notice that you have the structure for a generic desktop application:

    step 1 - 4

Including Predefined IDE Features

In this section, we include many additional modules, used in NetBeans IDE, which are useful in any other IDE too.

  1. Right-click the MyIDE project node and choose Properties. In the Libraries panel of the Project Properties dialog, expand the "platform" folder and deselect "JavaFX wrapper", since you will not need it in this scenario.

  2. Next, click the "ide" checkbox, as shown below:

    step 1 - 1

    Click the red Resolve button to include modules that the modules you included depend on. Click Finish.

  3. Right-click the application and choose "Clean", to remove the user cache from the previous run and set the application back to its defaults. Then right-click the application and choose Run. The new project appears as follows in the Projects window. Notice that you now have many additional features, all typical to any IDE, which we will explore in more detail in the next section.

    step 1 - 3

Coding Custom IDE Features

Depending on your needs, you can create custom features in your application that integrate with the predefined features you included in the previous section. The custom features are described via tutorials on the NetBeans Platform Learning Trail.

Congratulations. You have learned how to create the starting point for your own IDE.

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 152 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm