Tips & Tricks

­
3 07, 2017

JavaFX Tip 26: Go Dark – The “Darcula” Theme

By |July 3rd, 2017|JavaFX, Tips & Tricks|0 Comments

I am a big fan of IntelliJ IDEA and use it every day for the various projects I work on. One thing I like a lot is the dark theme called "Darcula". I like it because it looks cool and because of the low contrast it is better for my eyes. When you stare at [...]

2 03, 2017

JavaFX Tip 25: Use FXSampler!

By |March 2nd, 2017|CalendarFX, FlexganttFX, JavaFX, Tips & Tricks|0 Comments

The Problem As a framework developer it is essential to have an easy way to individually test the appearance of and the interaction with each custom control. I really hate it when I first have to open five different screens before I finally get to my new control so that I can test it. Not only [...]

1 02, 2017

JavaFX Tip 24: Custom Layouts for Performance and Flexibility

By |February 1st, 2017|CalendarFX, Java, JavaFX, Tips & Tricks|0 Comments

I just finished a two month sprint on advancing CalendarFX and getting it ready for release 8.4.0. One focus of this sprint was on performance. There are many things that can influence performance but when it comes to JavaFX the number of nodes in your scenegraph and CSS styling are top candidates for optimisation. After reviewing the custom controls [...]

18 07, 2016

Wanted: JavaFX Tips and Tricks

By |July 18th, 2016|JavaFX, Speaking, Tips & Tricks|0 Comments

At this year's JavaOne conference in San Francisco I will be presenting a session called "JavaFX Tips and Tricks". This talk will be based on the posts in my blog. However, I have a feeling that there are many more nice tips and tricks out there that should be mentioned in this presentation. So I am asking [...]

4 04, 2016

Shadow Fields vs. Property Accessor Interface

By |April 4th, 2016|Java, JavaFX, Tips & Tricks|2 Comments

Carl Dea recently followed up on a blog post of mine called Save Memory! Use Shadow Fields for Properties. In his blog he suggested the use of an interface called "Property Accessor" to eliminate the heavy use of boilerplate code that is needed in order to use  shadow fields. Carl also mentioned that he hasn't [...]

30 03, 2016

JavaFX Tip 23: Save Memory! Shadow Fields for Properties.

By |March 30th, 2016|Java, JavaFX, Tips & Tricks|21 Comments

Properties and property bindings introduced in Java 8 are extremely useful programming concepts. They are especially useful when you are developing user interfaces. In fact they are so useful that developers have fallen victim to the idea that everything should be a property instead of a primitive. Unfortunately they easily forget that properties such as SimpleLongProperty are much [...]

10 12, 2015

JavaFX Tip 22: Autosize (Tree) Table Columns

By |December 10th, 2015|JavaFX, Tips & Tricks|2 Comments

One of the first things mentioned as a "missing feature" in the JavaFX "Missing Features Survey" was the ability to auto-resize columns in tables / tree tables. It is correct that there is no public API for it, but when you pay close attention then you will notice that there must be code for doing this [...]

18 06, 2015

JavaFX Tip 21: Animate!

By |June 18th, 2015|CalendarFX, JavaFX, Tips & Tricks|1 Comment

When developers try to sell the switch from Swing to JavaFX to their superiors they often say that the user interfaces will look better and more modern. However, to really deliver on this promise I believe that one can not just rely on the improved look and feel of the built-in controls of JavaFX but [...]

16 06, 2015

JavaFX Tip 20: A lot to show? Use Canvas!

By |June 16th, 2015|Java, JavaFX, Tips & Tricks|5 Comments

There seem to be two kinds of JavaFX applications: the first one is using a scene graph with nodes and CSS styling, and the second one is using a single canvas. However, it is perfectly legal to mix these two approaches. Especially when your application has to show a lot of detailed information where you would easily end up [...]

5 06, 2015

JavaFX Tip 19: Watch Your Skin

By |June 5th, 2015|Java, JavaFX, Tips & Tricks|4 Comments

A common mistake that I do over and over again is that I put certain code into the skin class of a custom control while it should have been inside the control class itself. I just noticed this again when going through the list of bugs filed for the PopOver control of ControlsFX. I contributed [...]