Writing a JavaFX PDF Viewer plugin for NetBeans – 9. Updating the plugin jars

Introduction

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.

netBeans javaFX PDF viewer

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. Unlink PDF JavaFX viewer And then I add in my new jar. Notice that I selected the version from the root of my project. Add jar to NetBeans 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. jar added 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…

Final words

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.

If you’re a first-time reader, or simply want to be notified when we post new articles and updates, you can keep up to date by social media (TwitterFacebook and Google+) or the Blog RSS.

Related Posts:

The following two tabs change content below.

Mark Stephens

System Architect and Lead Developer at IDRSolutions
Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX. He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.
Markee174

About Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>