Archive for the ‘Java’ Category

Netbeans Platform ClassLoader Trick

Friday, October 26th, 2007

As you probably know in Netbeans Platform each module has its own ClassLoader. So if you want to load resources (eg: properties file, xml file, image file, etc) from another module basically you are out of luck. Just out of my head, there are at least 2 solutions available: Create Utility or ...

Customize Netbeans Platform Splash Screen and About Dialog

Thursday, October 18th, 2007

During development of our product Sketsa SVG Editor, we need to customize the default Netbeans Platform About Dialog and splash screen as part our product branding.        Note: this is tested on Netbeans IDE 6-beta1

Netbeans Platform parsing layer.xml

Thursday, September 20th, 2007

If you are building application on top of Netbeans Platform sooner or later you will deal with layer.xml. Layer.xml (Netbeans FAQ) is Layer files are small XML files provided by modules, which define a virtual filesystem . The layer file defines folders and files that will be merged into the ...

Nimbus, Java Expression Blend ?

Monday, September 10th, 2007

Daniel Spiewak Javalobby post regarding Jasper Pott recent blog nimbus almost done. Jasper Pott blog quote: Finally we are almost done with Nimbus and I am very pleased with the way it looks. There are many small details that need to be pollished ... ... Nimbus was drawn graphicaly in a new tool ...

Netbeans Platform Options Dialog

Wednesday, September 5th, 2007

If you build an application on top of Netbeans Platform and wondering how to create the custom options or preferences panel (Menu Tool - Options), then this tutorial is for you. This tutorial based on Sketsa SVG Graphics Editor that create custom Options Dialog for storing canvas related thing in Netbeans ...

Netbeans Platform and Memory File System

Saturday, 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 ...

How to convert SVG String to SVGDocument ?

Thursday, 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

Netbeans Platform and Default User Directory Settings

Thursday, 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 ...

Write better Javadoc with links

Friday, 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 ...

Netbeans Platform and Most Recently Used files (MRU)

Thursday, 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