Download NetBeans!

20080328 Friday March 28, 2008

Extension to Extended Java Project (Part 1)

A few days ago, based on a request from a user, I published a sample to the Plugin Portal to show how a project template can be extended with a new panel. Now I've extended it to do what the user probably really wants to do: use the new panel to generate a file which, in this case, is a class.

The plugin that you get from the Plugin Portal will, once installed, give you a new plugin sample in the NetBeans Modules category in the New Project wizard. Once you install that, you'll have a new Java application that generates the Anagram Game. However, there's a new panel, where you can set the scrambled/unscrambled word pairs:

So, once you click Finish, you will have the whole Anagram Game. However, the WordLibrary.java file will not have the words that are normally found there, i.e., "batsartcoin", etc. Instead, the words set in the panel above will be used to populate those parts of the WordLibrary.java file:

General instructions for creating something similar yourself are provided on the same page where you can get the plugin:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=6743.

Mar 28 2008, 02:26:22 PM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/extension_to_extended_java_project
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed