Second preview of GeoFroggerFX the JavaFX application

Second preview of GeoFroggerFX the JavaFX application

This is the second preview of GeoFroggerFX my little geocaching application written in JavaFX.

Changes since the last preview:

  • progress listener for the file io
  • embedded database H2
  • progress listener for database handling
  • readonly form elements
  • tabs added
  • show the description of the cache with WebView if the description is html content or otherwise a TextArea is used

You can try the preview with Java8 installed

Download: 1000 Caches example

Download: 11334 Caches example

Read More

Video of GeoFroggerFX handling 11.334 Caches

Video of GeoFroggerFX handling 11.334 Caches

This little video shows a preview of the GeoFroggerFX application handling more than 10.000 items in the ListView. Currently the items are read and parsed from a gpx file with 124Mb and the domain objects are still in memory.

You can try the preview with Java8 installed

Download: 1000 Caches example

Download: 11334 Caches example

Read More

JavaFX: custom ListCell

JavaFX: custom ListCell

In my GeoFroggerFX (replacement for my GeoCachingFrogger based on Netbeans), I have a list of geocaches. This post shows the development of the list from a simple list to a multiline list with icons.

Simple List

The first and simplest version had some textual rows.
simple list

Custom CellList with more information

But this isn´t too sexy and I also wanted more information in my list. So I decided to use a custom ListCell to support more information in multiple rows and also some icons. The first version just added more information as text to the row.

public class CacheListCell extends

Read More

JavaFX: MiniIcon(Animation)Button refactored

JavaFX: MiniIcon(Animation)Button refactored

Jonathan Giles wrote in his Blog that

This kind of code should be polished and added to the JFXtras project!

So I thought this would be a good start to learn more about JavaFX internals  and how to do it the right way. There is a talk at parleys where Jasper Potts and Jonathan Giles talk about creating a custom UI control. I wish I had seen this earlier.

1. Learn about the JavaFX seperation of concerns pattern

Like the most UIs, JavaFX has also a seperation of concerns pattern.

2. Refactor the MiniIconButton

So I have to break my

Read More

JavaFX: MiniIconAnimationButton

JavaFX: MiniIconAnimationButton

In the last JavaFX blog post I showed how a button with an glowing effect can be used to catch the users attention. In this blog post I develop a button based on StackPane to have a normal button in the back and an optional animating image icon in the front.

1. UI-Mockup

The code

2.1 Constructor

We need for the button a text, an icon and a mini-icon. As an optional parameter we can set the animation type.

/**  
   * Extended button without an animation
   * @param text button text
   * @param graphic button icon
   * @param notifyImage mini icon
   */
  public MiniIconAnimationButton(String

Read More