JavaFX

JavaFX Tip 27: HiRes / Retina Icons

I recently had a lot of icons sent to me by a graphics / UX designer. It was my job to add them to a JavaFX application. Each icon was shipped in three sizes (16x16, 32x32, 64x64). The naming convention for them was like this: icon-name.png icon-name@2x.png icon-name@3x.png At first I thought that this was some kind of standard naming used by graphic designers for their files but in the end it turns out to be a convention that was initially introduced by Apple for their Retina displays and adapted by the JavaFX team. The idea is that JavaFX [...]

By |2021-02-18T13:42:24+01:00August 29th, 2017|JavaFX, Tips & Tricks|1 Comment

JavaFX Tip 26: Go Dark – The “Darcula” Theme

I am a big fan of IntelliJ IDEA and use it every day for the various projects I work on. One thing I like a lot is the dark theme called "Darcula". I like it because it looks cool and because of the low contrast it is better for my eyes. When you stare at something for at least eight hours a day for decades (yes, I am that old) then you better make sure it goes easy on your eyes. This said I obviously also like to use dark themes for my own creations. The following snapshot shows [...]

By |2021-02-18T13:42:24+01:00July 3rd, 2017|JavaFX, Tips & Tricks|0 Comments

Invalid JavaFX Scroll Event Deltas?

BREAKING NEWS: this bug is now officially being tracked in the Java bug tracker. I noticed today that the delta values provided by the JavaFX ScrollEvent object seem to be invalid at the end of the scroll event cycle. The absolute value of those delta values becomes bigger again even though they should end up in values around zero. I ran my tests on a Mac with the Magic Mouse and the Magic Touchpad. The values getting bigger causes stuttering in the UI, for example a swipe scroll inside the ListView will cause the ListView to finish the scrolling [...]

By |2021-02-18T13:42:24+01:00June 30th, 2017|JavaFX|0 Comments

JavaFX Real-World Apps: Monastery Disentis

Finally the first "JavaFX Real World Apps" post that actually covers an "app" and not an "application", meaning the first JavaFX application in this series that was designed for mobile devices and not the desktop. The application is simply called "Monastery Disentis". It was developed by cnlab in Switzerland. It can be used by visitors of the monastery as a guide. Below you can see a couple of screenshots that were taken on an Android device. Video: a screencast of the application. What is cool about this application is that everybody can try it out be following the [...]

By |2021-02-18T13:42:24+01:00May 8th, 2017|Java, JavaFX|5 Comments

Interview on jaxenter.de

I was interviewed by Hartmut Schlosser of jaxenter.de last week and this week the article was published (in German) on their website. You can find it here: https://jaxenter.de/javafx-java9-javascript-56083. The interview was embedded in the "JavaFX Sixpack" series that tries to evaluate the potential of JavaFX. Hartmut was kind enough to also include information on my two commercial JavaFX frameworks CalendarFX and FlexGanttFX.

By |2017-04-13T14:08:19+02:00April 13th, 2017|CalendarFX, FlexganttFX, JavaFX, Speaking|0 Comments

JavaFX Animation Tool

Ok, I guess it is time to let you in on a little secret. The last three months or so I worked on a private project with the goal to create a tool that would allow me to easily create animations for Java desktop applications. JavaFX contains fantastic support on the API level for doing animations but for beginners or even intermediate level programmers it is not trivial to leverage it. However, when I use Apple's Keynote for creating presentation slides, or when I see the animation / slider plugins for Wordpress I realize how easy it can be to do animations, so [...]

By |2021-02-18T13:42:25+01:00March 24th, 2017|Java, JavaFX|0 Comments

JavaFX Tip 25: Use FXSampler!

The Problem As a framework developer it is essential to have an easy way to individually test the appearance of and the interaction with each custom control. I really hate it when I first have to open five different screens before I finally get to my new control so that I can test it. Not only is it annoying but it also costs too much time. When doing UI work you constantly make changes to your controls and look at the impact of those changes. If a single change roundtrip (code, launch, test) takes 5 minutes then you can only squeeze 12 change [...]

By |2021-02-18T13:42:25+01:00March 2nd, 2017|CalendarFX, FlexganttFX, JavaFX, Tips & Tricks|0 Comments

JavaFX Tip 24: Custom Layouts for Performance and Flexibility

I just finished a two month sprint on advancing CalendarFX and getting it ready for release 8.4.0. One focus of this sprint was on performance. There are many things that can influence performance but when it comes to JavaFX the number of nodes in your scenegraph and CSS styling are top candidates for optimisation. After reviewing the custom controls that ship with CalendarFX I realized that many of them used a lot of nested panes (BorderPane, VBox, HBox, GridPane) in order to achieve a specific layout. Nested panes result in a high node count and complex CSS styling instructions. One simple example are [...]

By |2021-02-18T13:42:25+01:00February 1st, 2017|CalendarFX, Java, JavaFX, Tips & Tricks|0 Comments

CalendarFX 8.4.0 Released

I would like to inform you that version 8.4.0 of CalendarFX has seen the light of day today. You can download it here. The first thing you will notice is the different version scheme. CalendarFX now uses the target Java version as its first number. In this case 8. With Java 9 lurking around the corner there will be a Java 9 compatible version soon which will start with number 9. Even though this is a new major release the current license keys will continue to work. Anyone planning to upgrade to this release should be aware that there have [...]

By |2021-02-18T13:42:25+01:00January 31st, 2017|CalendarFX, JavaFX|0 Comments

JavaFX Talks @ JUG Poznan

This week I had the pleasure to give my JavaOne 2016 presentations at JUG Poznan in Poland. I compressed all three talks into a two hour talk and I think it worked out well and gave the attendance a good idea what can be accomplished with JavaFX technology. Sebastian Pozoga, a member of JUG Poznan, recorded the session and made it available on YouTube. So if you are interested in "JavaFX vs. Swing", "JavaFX Real World Applications" or "JavaFX Tips & Tricks" then check them out. Again, thank you to PSI Poland for sponsoring this trip. [...]

By |2021-02-18T13:42:25+01:00January 22nd, 2017|JavaFX, Speaking|0 Comments