Netbeans Platform and Memory File System

September 1st, 2007

Normally, using Netbeans Platform you have to use DataObject.find() and use the OpenCookie to open the DataObject (eg: file, etc) to be opened on the Editor TopComponent. However, for certain case, I do not have the file yet eg: in Sketsa menu File – New. We do not want to create or store this as file yet, in case the user choose to discard the file. The file will be written to the disk, when the user choose either Save or Save As

Read the rest of this entry »

Tags: ,

How to convert SVG String to SVGDocument ?

August 23rd, 2007

Just simply use StringReader to wrap your string and pass it to DocumentFactory as the example below

Note: this sample utilize Apache Batik

Read the rest of this entry »

Tags: , ,

Netbeans Platform and Default User Directory Settings

August 16th, 2007

If you build application on top of Netbeans Platform, the default user directory setting will be in .app-name/dev. Well, this will quickly turn become problem when you deploy your next version of application, because the next version will read that directory settings for any persistence object and try to load it. If the new version is compatible then everything will works ok, if not then it is become big problem.

Read the rest of this entry »

Tags: , , ,

Write better Javadoc with links

August 10th, 2007

You build your application and public API, and now you want to publish or give your API Javadoc to others. But what happen is that your Javadoc API looks ugly because all the external link eg: link to standard Java class (String, JComponent, JPanel, etc) have no link at all and just plain text. See the image below

Read the rest of this entry »

Tags: ,

Netbeans Platform and Most Recently Used files (MRU)

August 9th, 2007

This is a tutorial on how to create most recently used files for the Netbeans Platform based application, like you see in the Sketsa or Citra FX.

Note: this tutorial utilize the new NbPreferences available in the upcoming Netbeans 6

Read the rest of this entry »

Tags: ,

Symbol Library 2.1.0 released

August 8th, 2007

Today, we just released Sketsa Plugins Symbol Library 2.1.0, this plugins allows the user to drag and drop prebuild SVG symbol or shape into the canvas.

This release add new symbols and minor enhancements.

Read the rest of this entry »

Tags: , ,

Netbeans Platform Branding and version info

August 6th, 2007

By default Netbeans Platform based application automatically insert the version information by using the platform build number (the first or last 4 digits, correct me if I am wrong). And currently there is no easy ways to set or update this version info, unless you want to dig through the branding folder and change the value manually.

Fortunately, the flexibility of Netbeans IDE (ant based build system) allow us to automate this stuff. Below is how I automate it

Read the rest of this entry »

Tags: , , ,

Netbeans Platform i18n and localization

August 4th, 2007

Netbeans Platform allows the application to be localized, the only problem is that it is not quite clear on the documentation, especially how to override the localization for Netbeans default menu eg: File, Edit, Windows, etc

Note: The is based on Netbeans 5.5.1

So to localize Netbeans Platform default menu, you could do the following

Read the rest of this entry »

Tags: , ,

Netbeans Platform parsing command line arguments

August 1st, 2007

New features in Netbeans Platform 6 is the ability to parsing command line, so let’s try to parse command line to automatically open document on startup. This example below are using Sketsa SVG Editor as an example
Read the rest of this entry »

Tags: , ,