Welcome to the first in this series on writing a plugin in NetBeans. This will be a whole series of articles as we develop a new plugin using NetBeans. In our example, we will be developing a JavaFX PDF Viewer but the aim is to provide a generic tutorial exploring the NetBeans platform.
I wrote our original PDF viewer plugin in 2008 and both NetBeans and Java have seen a lot of changes since then. So we have decided to write a new one from scratch, using JavaFX where possible and all the latest features in NetBeans 7.4 for development.
IDRsolutions and PDF
The focus for IDRsolutions is on providing solutions for developers to display and access PDF files. We have had a Java PDF Viewersince 2002 and recently developed a PDF to HTML5/SVG converter (you can see some examples here). We have also been extending our PDF support to include XFA files. Our focus has always been Java so looking at JavaFX as a way to display PDF files is a natural extension for us…
Why write a plugin?
NetBeans is a very modular IDE. This means it is very easy to extend by adding your own code (a plugin). It also consists of a huge body of useful and tested code which you can use as a library for your own developments (Rich Client Programs). In this case, the NetBeans IDE disappears (you just use what you need from the NetBeans platform).
You would use if for the same reason you use an IDE rather than a text editor to write your code (lots of functionality and much faster to develop). There is considerable overlap between plugins and RCPs so plugins are also a very good starting point for further development.
What do you need to write a plugin?
Everything you need to create a plugin is built into the latest versions of NetBeans. We recommend you use the latest current NetBeans release (NetBeans 7.4 at the time or writing). You will also need a jar file for the PDF viewer code. We will provide a cutdown version of our commercial jar, with just the minimal code needed for the plugin. This will be a free download but without any warranty or support. You will also be able to use our full commercial version which will provide more features and support.
What costs are involved?
NetBeans itself is free and we will provide a free Jar to add the JavaFX viewing component for the plugin. So the only cost involved is an investment in time from you….
Spoiler for the impatient….
If you really cannot wait and just want to install the plugin, you can download the plugin from the Netbeans plugin portal.. Remember this is just the first release and we will be adding a whole load of features over the coming months!
This post is part of our “NetBeans article Index” series. In these articles, we aim to explore NetBeans in different ways, from useful hint and tips, to our how-to’s, experiences and usage of the NetBeans IDE.
Click here for the next article in the series.
Click here to watch the Youtube Video Guide.
Latest posts by Mark Stephens (see all)
- NetBeans Day UK announced for Tuesday 25th April 2017 - February 1, 2017
- The 2017 Guide to PDF Files – Creation II - January 19, 2017
- The 2017 Guide to to PDF Files – Creation I - January 17, 2017
- 7 ways we might change the way we develop software in 2017 - January 6, 2017
- IDRsolutions will move to Java8 in April 2017 - November 8, 2016