FOSDEM '08 is a free and non-commercial event organised by the community, for the community. Its goal is to provide Free and Open Source developers a place to meet.


Schedule: extensions development in Java with NetBeans in practise

Jürgen Schmidt
Day Sunday
Room AW1.117
Start time 09:15
End time 10:45
Duration 01:30
Event type Podium
Language English extensions development in Java with NetBeans in practise

This workshop will explain how developers can use the API plugin for NetBeans for developing with and for in Java.

The popularity of the standardized (OASIS and ISO/IEC 26300) Open Document Format for Office Applications (OpenDocument) is growing. This also drives the popularity of office in government agencies and enterprises. Corporate users often demand the integration of office productivity into existing workflows and applications. They also often require additional functionality or special customizations of the existing features. offers a language independent application programming interface (API) which allows to program in Java. It allows to use as service provider in other applications, extend it with new functionality or simply customize and control

Typical use cases are document creation, conversion or printing from remote client applications (typical server scenarios). Embedding office functionality into own Java applications to make use of the rich feature set. For example using the editor of the word processor application with all its features in your own application. Or intercept and replace existing commands with own implementations. For example replace the standard save/load commands to save/load directly into/from a document management system (DMS). Alternatively it is possible to insert additional save/load menu entries to support the DMS additionally. Do you have thought about embedding your own Java component into an writer document? Embed Java components and activate them outplace in an external window. The use cases can be extended easily and it is obvious that both the and the Java world can benefit from each other.

The API plugin for NetBeans helps to use this API most effectively from NetBeans. The workshop will give an overview of the provided features of the plugin and will explain step by step how to - use wizards to create complete extensions for - deploy extensions directly from NetBeans into a running office program - debug the running extensions in NetBeans

And in more detail the audience will learn how to develop an own Smart Tag extensions for the Writer application. Smart Tags are known from a well known other office application and are new in since version 2.3. Smart Tags open the door for creativity and a lot of small, nice and probably useful new features (implemented as extensions) for the Writer application.

A second example will explain step by step how to implement an options dialog pane for an own extension. More comprehensive extensions often allow the configuration of options and a well integrated options pane in the default office options dialog make extensions looking more professional and helps to improve the overall user experience of the office. Users can find all configuration in one place under Tools - Options.

The workshop examples are explained in detail and step by step. The provided workshop material provides links to further background documentation.