Home » Java » Desktop Java » Page 8

Desktop Java

OpenMap Tutorial 4 – Layers

1. Introduction In the first tutorial we created a basic OpenMap GIS application that displays a map with one shape layer, loaded from the filesystem, inside a JFrame. That tutorial was based on com.bbn.openmap.app.example.SimpleMap. In the second tutorial we extended our basic application to use the MapHandler and in the third tutorial we saw how it makes use of openmap.properties ...

Read More »

Using libGDX with Kotlin

I’ve been reading lately about different languages and what they can bring to the already crowded table of software developers, and one language stood out for me: Kotlin. (https://kotlinlang.org/) It’s a relatively new language (est. 2011) and these are just a few reasons why I picked it over the multitude of other more mature languages: Runs on the JVM and ...

Read More »

Dependency Injection in JavaFX with Gluon Ignite and Dagger

The Dependency Injection abstraction framework Gluon Ignite creates a common abstraction over several popular dependency injection frameworks like: Spring, Dagger and Guice. Currently the Gluon page only contains an example which uses Gluon Ignite with Google Guice as Dependency Injection Framework and I wanted to try Dagger instead of it, because it aims to be more minimalistic and faster than ...

Read More »

Effective UI tests with Selenide

Waiting for miracles Christmas is a time for miracles. On the eve of the new year we all build plans for the next. And we hope that all problems will leave in the ending year, and a miracle happens in the coming year. Every Java developer dreams about a miracle that lets him become The Most Effective Java Developer in ...

Read More »

JavaFX Tip 22: Autosize (Tree) Table Columns

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 somewhere inside JavaFX, because the ...

Read More »

JavaFX is Here to Stay!

The last week has seen some discussion on the web related to the future of JavaFX. Many people got the impression that JavaFX will be put on ice by Oracle. This was primarily caused by a blog post written by Shai Almog (Codename One) called “Should Oracle Spring Clean JavaFX”. It was  “inspired” by a blog that I had written a little bit ...

Read More »

OpenMap Tutorial 3 – Build a basic map application using the MapHandler – Part 2

1. Introduction In the previous tutorial we saw how the MapHandler can wire up various components together (more specifically classes that derive from MapHandlerChild). We saw how we could do this programmatically, but there is also another way, declaratively, using the openmap.properties. The sample OpenMap application is configured with an openmap.properties file. The contents of this properties file specify which ...

Read More »

Should Oracle Spring Clean JavaFX?

We really depend on JavaFX at Codename One, our simulator needs it. Our desktop build uses it and our designer tool is based on Swing. We want it to succeed, its important to our business! We are not alone, even if you are a Java EE developer and don’t care about desktop programming, keep in mind the fact that today’s ...

Read More »

When to use JavaFX instead of HTML

The one question that JavaFX aficionados like myself are facing over and over again is the question when (or why) to use JavaFX instead of HTML (5). Here are my two cents on it: You should use JavaFX if …. … you are interested in robustness / quality. JavaFX is Java! You will be able to implement your entire application with the same language / ...

Read More »