Home » Java » Desktop Java

Desktop Java

JavaFX Tip 31: Masking / Clipping / Alpha Channel

Selection Strip I recently had to implement a custom control that lets the user select a single item out of a list of items. This “SelectionStrip” control had to lay out the items horizontally and in case of too many items allow the user to scroll horizontally left and right. The control was to be used in a space-constrained area, ...

Read More »

“Metro” Table For Java (JavaFX)

Hi again, this time the TableView “Metro” style gets added to the JMetro JavaFX theme. This amps up the JMetro version to 3.1.0. The reason why I didn’t add the Table style before is because strangely there isn’t yet a definition for the Table in the Fluent Design System (previously Metro). There is a preview control, called DataGrid but is ...

Read More »

JavaFX Tip 30: ScrollPane with DropShadow

In one of my projects I recently noticed that it was hard for the user to see whether the content of a ScrollPane instance was currently scrolled or not. One way of making this more clear is to add a drop shadow to the top of the scroll pane. This is also something suggested by Google’s Material Design. So I ...

Read More »

JavaFX Tip 29: Make Layouts Ignore Invisible Nodes

Back in the days when I was still implementing UIs in Swing I used to be a big fan of MigLayout (“one layout manager to rule them all”, right Mikael?). One of the features I really liked was the possibility to define different behaviors when a component became invisible. MigLayout allowed me to either preserve the space that the now ...

Read More »

Desktop UIs Will Stay Alive Thanks to Web Technologies

To understand what’s wrong with Java desktop apps, let’s take a look at the new features of JavaFX, a leading UI framework for desktop applications. It becomes obvious that it is trending towards the web approaches, borrowing more and more features from the web world. JavaFX supports a subset of CSS features, accompanying it with their own properties. However, this ...

Read More »

Reactive GWT

Introduction Reactive programming’s popularity has tremendously grown over the last 4 or 5 years. This can tell us that the use case of reactive applications is now valid more than ever. The strain on backend systems has increased and accordingly the need to handle this strain with minimal resources. Reactive programming is seen as a way to increase efficiency and ...

Read More »

New Parallax Control For Java (JavaFX)

Introduction Parallax is a visual effect where you combine two layered images moving at different speeds to achieve a sense of depth. Think about when you’re driving on the road and you see the trees close to you moving fast whereas the trees that are further away will move in the same direction but slower, the result is that you ...

Read More »

Outputting the given, when, then, Extending Spock

Spock is a Java testing framework, created in 2008 by Peter Niederwieser a software engineer with GradleWare, which facilitates amongst other things BDD.  Leveraging this example, a story may be defined as: Story: Returns go to stock As a store owner In order to keep track of stock I want to add items back to stock when they're returned. Scenario ...

Read More »

GWT HTTP requests alternatives

For several reasons, many GWT users ditched the RPC mechanism which is the standard way offered by GWT to call the backend. They found themseleves lost between GWT RequestBuilder and other external librairies which may or may not fit their application model. The objective of this post is to go through the well known HTTP/Rest libraries in GWT in an ...

Read More »