JavaFX Native Look and Feel

|
I have been toying around with JavaFX, Sun's answer to Adobe AIR and Microsoft Silverlight.  Since JavaFX is pretty much an easy way to do Swing, you can get Swing's pluggable look and feel in Java FX programs.  Thank Christ, because the Swing UI components look like shit:

demo-swing.png
Versus the GTK look and feel:

demo-gtk.png
This was done by adding the following snippet to my JavaFX code:


import javax.swing.UIManager;
 
 UIManager.setLookAndFeel(
            UIManager.getSystemLookAndFeelClassName()); 

Oh neat, native UI components.

About this Entry

This page contains a single entry by Ted Dziuba published on May 10, 2008 10:14 AM.

Eclipse Crashes in Ubuntu Hardy Heron was the previous entry in this blog.

Weekend Science Project is the next entry in this blog.

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

Categories