Category: Java

Editable Tables in JavaFX

After hearing my colleague constantly talking about the editable grids that the company I work at designed a long time ago, I decided to do something to make him proud of me. So I wrote a application that creates an editable TableView in JavaFX that can be used to brainlessly enter in data, if that's what ...

Size does matter in JavaFX

Does size matter? That's a question that's been around for a while and the answer is up for debate. But this is JavaFX and the answer is a resounding yes size does matter. I'm not saying that user interfaces need to bigger to be better, I'm talking about controlling size. If you don't control it ...

Common Fork Join Pool and Streams

In my post Dipping into Java 8 Streams a comment was added that I should explain what the Common Fork Join Pool is and how it is linked to parallel streams. Honestly I had never heard of it so I set out on my quest to find the answer somewhere on the internet and make ...

JavaFX graphs look pretty good!

When I was doing my 3rd year project in university I needed a good looking chart to use in my user interface and now I have grown older (nearly 2 whole years!) I wish I would have turned to the charts in JavaFX rather than the ugly looking JChart2D API that I used. Now don't get me ...

Java 8 Streams

Streams are another feature that were added with Java 8. It provides a different way of performing operations on a Collection. Rather than implementing how to perform an operation on a Collection you instead define what you want to come out of it, which follows the Functional Programming paradigm that was made available with Java ...

Method::reference

Method references are a feature of Java 8. They are effectively a subset of Lambda expressions because if a Lambda expression can be used then it might be possible to use a method reference, but not always. They can only be used to call a singular method, which obviously reduces the possible places they can ...

Which for loop?

Java 8 has introduced another type of for loop. This gives us the third way to use them. You would think that releasing another way to use the loop would suggest that it must be better than the others. But that is not the case, each one has subtle differences meaning you should have a ...