Improved JavaFX Clock

| No Comments | No TrackBacks

I have been playing around with the clock on http://sellmic.com/blog/2007/05/20/javafx-clock/, which is really cool. A number of people commented that the implementation was chewing up too many CPU cycles, so I decided to see if I could fix that. I found that the timer loop was the culprit. After modifying the code to use a Swing timer, CPU usage is almost 0%. You can launch the new Clock via webstart below.

Source
ClockUI.fx
JfxClock.fx

No TrackBacks

TrackBack URL: http://www.coffeejolts.com/cgi-bin/mt4/mt-tb.cgi/82

Leave a comment

About this Entry

This page contains a single entry by Coffeejolts published on May 31, 2007 2:51 PM.

Antialias bug in JavaFX is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.31-en