As a part of my recent internship at the Fraunhofer-Institute for Industrial Engineering, I had to write a short summary about some technology I was using, because I was mainly working with Sun’s Open Source Rich Client Framework aka the Netbeans Platform, I chose  this to write about.

The result was the following paper, it is written in german, but some might find it useful anyhow.


Web Services (WS)  in Java can be realized using several technologies, in this short tutorial I will demonstrate how to implement a very basic Web Service in an ejb-module with just a single line of code.

The Web Service we are going to Implement will perfom one simply operation, it will take an input argument of type int and return it’s square. Just like the method:

public int square(int a) {

return a*a


would do.


  • Netbeans >= 6.5
  • Glassfish Applicationserver
  • about 10minutes time

Read More

If you build a visual application that provides the abillity to open multiple models, having a global satelliteview, instead of a single one for each scene is pretty much essential. This can be easily done by using the LookupAPI.

Read More

a quick and easy way to create a sequence of widgets from a string is to use its split(String regex) method. It simply takes a String argument which determines the character thats used to split the actual String and returns a String Array containing single tokens. The following method takes a String in the form of: 

s:a:a:b:a:c:c:b:a:s Read More

The Visual Library itself provides support for printing via the ScenePrinter class, located in org.netbeans.api.visual.print.

The ScenePrinter provides a couple of convenience methods for printing, the simplest only takes one argument, the scene you want to print.

ScenePrinter.print(Scene scene);

thats it, when called, this would show the default printing dialoge. But besides just printing the scene like that, you can set a few settings like page orientation or scaling,  check out the javadoc here.

In case you’ve never heard of java-webstart, it’s a technology that makes it possible to start a usual java app, directly out of your browser.  This is pretty cool, because deployment can be centralized and users automatically get the latest version if there is one available, otherwise the locally cached version would be used, so the application doesn’t need to be downloaded each time it’s launched. 

Read More

%d bloggers like this: