Java Source File Palette Sample - plugin detail

Illustration of MIME-based registration of palettes, which is possible from NetBeans IDE 6.0 onwards.

NetBeans Plugin - Java Source File Palette Sample
Plugin owner: geertjan
Added: 2007-06-04
License: CDDL
Category: Code Generation
Downloaded: 5,090 times
 4.03, by 3 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.02 MB   Last Update: 2008-05-16

What's new in this version

Rewrote the indentation code so that BaseDocument is avoided. Incremented the version from 1.0 to 1.5.

Verifications for NetBeans versions

Plugin is not subject to any verification


NetBeans module sample. When you install the module, what you will have is a new sample in the New Project wizard.

When you step through the above, you will have a new module. The module shows how to create a palette via MIME-type registration.


This is a new feature from NetBeans IDE 6.0 onwards, allowing you to create a palette in one module for an editor defined in another module. Here, the module provides a palette for Java source files.

Also see this blog entry, which shows an interesting extension to this sample, for allowing your users to create their own code snippets in your palette from code in the editor.

[ You have to be logged in to be able to comment. ]

User Comments



That's exactly what I was looking for to learn how to create an palette.
Posted by silveiraneto on Feb 23, 2008