Project Type Sample

In the coming weeks, a free on-line NetBeans Platform Training Course will be made available. It will be based on Tim's excellent "PovRay" series, which is currently severely out of date and has been causing a lot of questions for a while, even though those who work their way through the problems tend to end up with the result they were looking for in the first place. In that context, his tutorial will be removed from the web because it will be part of the course. The most interesting part of his tutorial, on a technical NetBeans Platform level, is the material relating to the creation of NetBeans project types. Those taking the course won't necessarily be interested in that, but will probably be taking the course to gain a general understanding of how to work with the NetBeans Platform.

But what about those who're interested specifically in creating new NetBeans project types? They first need to ask themselves whether they really need a new project type because since 6.1 it is possible to extend existing project types, which should be seen as the preferred approach, as outlined in the NetBeans Project Type Extension Module Tutorial. However, what if you STILL need to create a new project type? For these special cases, a sample is now available:

It will create a new project type. The project type will treat any folder as a NetBeans project if it has a subfolder called "texts". The content of the "texts" folder will be displayed in the Projects window. The project will have some of the typical project-level commands at its disposal:

So, if in the coming weeks the PovRay tutorial suddenly disappears, now you know why. At that point, you can either take the free on-line NetBeans Platform Training Course or (and in the period where it isn't available yet) you can simply download the sample and adapt it to your own needs.

The sample was created in NetBeans IDE 6.5 Beta, so you need at least that release if you need to work with it.


Hi Geertjan,

Recently, I came across this PovRay tutorial, though have not seen it completely.

But, I would like to know, whether the new sample, will be able to provide enough information, for creating a new project type?

I am waiting for the upgradation!

Thanks ;)

Posted by Varun on August 13, 2008 at 06:48 PM PDT #

Hi, Geertjan.

May I ask you an offtopic question? As I can see you use Ubuntu linux. Probably you know the reason of this issue I have: I have got the following issue with combo-box drawing in java applications (including NetBeans IDE):

I have Ubuntu 8.04.1 with “human” theme and “extra” visual effects turned on. Java version is jdk 1.6.0_10-rc. I don’t remember for sure but it seems I had the same issue on my previous Ubuntu installation 7.10 with jdk 6u02.

Any ideas how to fix it? Everywhere in operating system interface everything is OK with combos.

Here the link to this question in my blog (just in case)

Thank you,

Posted by Alex on August 14, 2008 at 04:08 PM PDT #

Hi Geertjan,
I am testing the release 6.5 Beta, I am testing different NB platform applications. I found a strange "behavior of the IDE". Lets take the Paint Application sample. It runs perfectly the first time. But If I add or remove any extra modules (even the unused one) I got the following message (see below). The same problem happened with any other platform application!!


Scanning for modules in C:\\Program Files\\NetBeans 6.5 Beta
Scanning for modules in suite D:\\Documents and Settings\\Khalil\\Mes documents\\NetBeansProjects\\PaintApp
C:\\Program Files\\NetBeans 6.5 Beta\\harness\\suite.xml:106: The following error occurred while executing this line:
C:\\Program Files\\NetBeans 6.5 Beta\\harness\\build.xml:97: The module org.openide.awt cannot be compiled against because it is part of the cluster platform9 which has been excluded from the target platform in your suite configuration

Posted by khalil on August 15, 2008 at 06:15 PM PDT #

I've not had that experience myself, Khalil.

Posted by Geertjan on August 15, 2008 at 06:24 PM PDT #

I have the same trouble.

Posted by Oleksandr Fedotov on August 16, 2008 at 09:16 PM PDT #

Oleksandr Fedotov, take a look at this discussion -

Posted by Alex on August 16, 2008 at 10:42 PM PDT #

Problem seems to be fixed in 6.5 builds after 14 aug 2008

Posted by Oleksandr Fedotov on August 17, 2008 at 02:44 AM PDT #

Oleksandr Fedotov, I still have the same issue with NB 6.5. And that's clear that the problem in system java look and feel. Do you know by chance where can I specify the default look and feel for all java applications I run?

Posted by Alex on August 18, 2008 at 05:49 AM PDT #

Since I’ve installed the 6.5 all my old projects gone mad. Even if I delete the 6.5 platform from the platform list every project choose it automatically and I have to restart NetBeans sometimes to let the projects run in the 6.1 again. Since in 6.5 Platform no modules are selected i get the same problem. Changing from one suite to another must be a bit straiter forward.

The PovRay Project helped me a lot but it gets really hard in the end since i am not really interested in povray. More standard design issues for custom projects, the usage of XML to define properties and some more Information on custom ordering and positioning of Nodes (like in Java Project) would very helpful.

Posted by Pavel Kotlov on August 20, 2008 at 01:42 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016