Last week I had to stay sick at home for a couple of days. On the positive side, I finally found some time to look into my old library for inverse kinematics. I wrote it a couple of years ago for JavaFX 1.x. And I decided to port it to JavaFX 2. The initial version is ready for download.
At this year’s JavaOne, I did a session “JavaFX for Business Application Developers” and a BOF “Live-Coding BOF: Writing a Game with JavaFX”. This post provides the material.
Continue reading “JavaOne Material”
In retrospect it was probably not a good idea to give the AnimationTimer its name, because it can be used for much more than just animation: measuring the fps-rate, collision detection, calculating the steps of a simulation, the main loop of a game etc. In fact, most of the time I saw AnimationTimer in action was not related to animation at all. Nevertheless there are cases when you want to consider using an AnimationTimer for your animation. This post will explain the class and show an example where AnimationTimer is used to calculate animations.
Just uploaded the slides of my talk “JavaFX for Business Application Developers” at Java Developer Day in Prague.
SketchHatch is a web application that helps you to sketch out new ideas in a fun and inspiring way. Usually all you want to put down during early phases are some rough drafts, maybe some notes and that’s it. I did not find a single tool that gave that to me, so I wrote my own. 🙂
It has been very quite on my blog for some time now. The reason is, that I was busy writing a new web application at day and night – well mostly at night. It is almost done and I will hopefully be able to open it for public beta next week.
The application provides an online whiteboard. You can attach sticky notes and draw on the canvas directly. It is pretty flexible. My original idea was a tool that helps me while brainstorming new ideas. But looking at the final result now, I guess you can use it for all sorts of things you would usually use a whiteboard for. Maybe even as a Scrum board or a Kanban board. 🙂
Below is a screenshot. If this looks interesting, stay tuned for the announcement sometime next week.
To learn how to use CSS with JavaFX, I wrote a small application and created two new looks with CSS – and I must say I am truly impressed by its capabilities. Look for yourself how much you can do with CSS only.
Continue reading “Example CSS Stylying in JavaFX”
While most of my posts so far dealt with JavaFX properties and bindings, today I want to write about another part of the JavaFX runtime I also work on: the animation API. In this article I will explain how to write custom animations in JavaFX and use this approach to create a class for sprite animations. (This will also be a good practice for one of my sessions at the conference 33rd Degree. I plan to write a game in JavaFX in just one hour. That’s going to be fun!) 🙂
Last week I did a talk about JavaFX at Jfokus 2012 in Stockholm, when I realized that there are three questions I am asked at every event. There seems to be a general interest, so I try to answer them in this post (as much as I can to be honest):
- What about JavaFX on the iPad or other mobile devices?
- Is Swing dead now?
- How do I migrate my Swing application? Continue reading “Most often asked questions about JavaFX”
The functionality of JavaFX ChangeListeners and InvalidationListeners is very similar. It can be hard to see a difference at all. Both types differ mainly in their runtime behavior. In fact, if performance matters, chosing the wrong type can destroy everything.
My suggestion is to stick to a simple rule: use a ChangeListener if you need to know the new value in the listener, otherwise use an InvalidationListener. In this article I will explain the reasons.