In our NetBeans plugin series, we have been building a JavaFX PDF viewer plugin for NetBeans IDE. We have added a lot of new features to the JavaFX viewer, so in this post we are going to show you how to update the used jar in a NetBeans plugin. We will be using the new features in later articles to add features to the plugin. We will also talk about software developments and JavaOne….
What is the JavaFX PDF viewer?
IDRsolutions has been very busy developing a Java FX PDF viewer to complement our Swing Viewer and other tools. Our of our aims was to make the API identical for both viewers as much as possible. So it is really easy to switch.
The JavaFX viewer is now reaching a high level of completeness and we will be demonstrating some JavaFX only features at our JavaOne exhibitor stand (Stand 5714 next to our friends from IText). My colleagues Ernest and Sylwia will also be doing a talk JavaOne on NetBeans and JavaFX.
There are TWO version of the JavaFX PDF viewer. The commercial ViewerFX is part of our commercial JPedal Java PDF library (and a free update to all current customers). As well as viewing, JPedal includes support for printing, viewing, extraction, text search and lots of other features.
Developing Java applications in NetBeans
One of the reasons we have put our JavaFX PDF viewer is that NetBeans is not just an IDE for code development but a complete base for building Java applications on (without the IDE). All the features you could possibly want are already in the NetBeans platform and heavily tested. Your Rich Client Applications can make use of all these years of development (which are probably now into the hundreds) put into the NetBeans platform. Just as NetBeans IDE makes you much more productive writing code, using the NetBeans platform lets you build Java applications much quicker (and I personally hate spending my coding time reinventing the wheel).
Updating the NetBeans jar
So let us update our NetBeans plugin with our new JavaFX viewer. Our first task is to update the jar. I have copied in the latest version of our jar, but NetBeans also caches data on the jars used. So the safest thing is to unlink and relink the jar. First I remove the jar. And then I add in my new jar. Notice that I selected the version from the root of my project. Note that NetBeans has copied it into a new location (and analysed the jar at the same time). The new jar is now being used inside my plugin. Finally we upload the updated plugin to the NetBeans portal. The new version has a much improved JavaFX viewing engine and adds lots of enhancements we will be using in the next article…
Thank you for reading, hopefully you have found this part of our series interesting, keep an eye on the blog for future updates for the plugin and hopefully a few other surprises… You can also download our plugin from here.
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.
Latest posts by Mark Stephens (see all)
- My experience of a Turkish bath (visiting Istanbul for DevFest) - November 24, 2017
- My 5 key takeaways from JavaOne 2017 - October 6, 2017
- My notes and pictures from thursday JavaOne 2017 - October 5, 2017
- My notes and pictures from Wednesday JavaOne 2017 - October 5, 2017
- My notes and pictures from Tuesday JavaOne 2017 - October 4, 2017