Top Banner
Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia
12

Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Dec 16, 2015

Download

Documents

Bertina Ray
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX

Ernest Duodu

Sylwia Kedzia

Page 2: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

us.getInfo()

Who are we?

What do we do?

Page 3: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Agenda

What is JavaFX?

JavaFX and Swing.

Why write a plugin for Netbeans?

Anatomy of a plugin.

Integrating JavaFX into Swing Applications.

Takeaways.

Questions and Answers.

Page 4: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

JavaFX

At the end of the day, on the one hand we have computer systems, and on the other, people, Connecting them together, and allowing people to interact with computer systems in a compelling way, requires graphical user interfaces.

Christopher OliverCreator of F3

https://blogs.oracle.com/chrisoliver/entry/epitaph

Page 5: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Key features of JavaFX?

Two way integration with Swing.

3D graphics.

WebView API.

Node structure of JavaFX vs the flat structure of Swing.

Page 6: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Why JavaFX?

CSS Support.

FXML and Scene Builder.

Supports Visual and Audio Media.

Better Looking GUI.

2D and 3D Transformations.

Visual Effects.

Easy to Develop.

Page 7: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Why write a plugin for NetBeans?

NetBeans is very a Modular IDE.

Plugin based development environment.

Has lots of useful and tested code.

Generate most codes for you.

Page 8: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

What's needed in order to create a Plugin?

Development Environment “NetBeans”.

Testing and Debugging Environment “NetBeans”.

Deployment “NetBeans”.

Page 9: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Key Takeaways on JavaFX:

Use the latest version of Java.

Use CSS very similar to HTML.

Download the Scene Builder.

Platform.setImplicitExit(false);.

Remember to run FX code in FX application. Thread(Platform.runLater)

Page 10: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

5 tips for writing NetBeans Plug-ins

Use the NetBeans built -in menu wizards to write your plugin (huge time saver).

You can build whole apps on NetBeans platform (not just plugins).

Use the Module Suite to break your plugins into small, functional units.

There is some really good ebooks on NetBeans. Recommend 'NetBeans for beginners'.

Put your plugin on NetBeans portal and also look at other plugins there.

Page 11: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Questions and Answers

Download source code from

https://www.dropbox.com/s/vfk900lnjhkzwup/JavaOnePlugin.zip?dl=0

Page 12: Lessons learnt developing a NetBeans PDF viewer plugin in JavaFX Ernest Duodu Sylwia Kedzia.

Come talk to us @ Stand 5714

For More NetBeans and JavaFx stuff read our blog @ blog.idrsolutions.com