Home » Java » Desktop Java » Page 11

Desktop Java

Don’t Remove Listeners – Use ListenerHandles

Listening to an observable instance and reacting to its changes is fun. Doing what is necessary to interrupt or end this listening is way less fun. Let’s have a look at where the trouble comes from and what can be done about it. Overview The post will first describe the situation before discussing the common approach and what’s wrong with ...

Read More »

Transform Your SQL Data into Charts Using jOOQ and JavaFX

In the recent past, we’ve shown how Java 8 and functional programming will bring a new perspective to Java developers when it comes to functional data transformation of SQL data using jOOQ and Java 8 lambdas and Streams. Today, we take this a step further and transform the data into JavaFX XYChart.Series to produce nice-looking bar charts from our data. ...

Read More »

JavaFX List Example

This is an example list application built using JavaFX. The app is a list of todo (to do) items. This app has functions to add, update and delete items in the list.  The list data is stored in HSQLDB relational database. The app accesses the database using JDBC (Java Database Connectivity) API. The app is packaged as an executable JAR ...

Read More »

The IDE of choice for UltraESB – IntelliJ IDEA

At AdroitLogic we have been using IntelliJ IDEA from a long time for development. It is found to be the best IDE for Java and related languages/technologies (it may be the choice for many other languages too, but my experience is mainly for Java and related technologies). The integration of Groovy and Grails of IDEA is awesome. The Data Source ...

Read More »

JavaFX in the browser

Lately Carl Dea and I have started a new project to bring JavaFX 8 into the browser. Today I want to introduce the first two proof-of-concepts that we created to see if this idea is feasible at all. For the impatient, here are the links to the PoCs. But be warned, startup time is horrible at this point. It can ...

Read More »

Sacrilege – a Custom SWT Scrollbar

SWT is a thin abstraction layer on top of native OS widgets. Which is a very good thing if you intent that your applications integrate well with the OS look and feel. But as a trade-off this approach limits styling capabilities significantly. In particular I perceive the native SWT scrollbar often disruptive on more subtle view layouts. Coming across this ...

Read More »

SWT Mouse Click Implementation

Doing a bit of SWT custom widget development lately, I stumbled across the question why is there no such thing as a default SWT mouse click listener? As this subject raises once in a while, I thought writing a word or two about the rational ground behind – and how to implement mouse clicks in general – would not hurt. ...

Read More »

Deferred Fetching of Model Elements with JFace Viewers

Model elements displayed by Eclipse JFace Viewers sometimes take a considerable amount of time to load. Because of this the workbench provides the type IDeferredWorkbenchAdapter to fetch such model elements in background. Unfortunately this mechanism seems to be supported only for AbstractTreeViewer derivates via the DeferredTreeContentManager. Hence I developed a generic DeferredContentManager of my own… It enables background loading for ...

Read More »

Cannot Uninstall JavaFX SceneBuilder 1.0 with JDK 8

I was recently removing some of the software development applications, tools, and files I had used from an old Vista-based laptop because the people who are primarily using that laptop now have no interest in software development. As part of that effort, I tried to remove JavaFX Scene Builder 1.0, which I had installed a couple of years ago on ...

Read More »