Open Source JavaFX Now!

Steve On Java - JavaFX

Hacking Java, JavaFX, and Flash with Agility
  • rss
  • Home
  • About
  • Contact
    • E-mail Steve
    • SC2 Challenge
  • SvJugFX
  • JavaFX Petition
  • JFXtras
    • JFXtras Individual CLA
    • JFXtras Corporate CLA
  • Freedom From XML

JFXtras 0.1 Release – Grids, Dialogs, Testing, and more!

steveonjava | December 29, 2008

The JavaFX 1.0 release came out a couple weeks ago, but one of the big questions has been about missing UI functionality, such as layouts, menus, and UI components.  Future release of JavaFX will support this, but in the meantime application developers are stuck up the river without a paddle.

The JFXtras project was conceived out of just such a discussion between Jim Weaver and I as we were brainstorming on all the missing functionality we wished JavaFX supported today.  As a starting point we each had a repository of components and widgets to share, and an endless list of things we wished we had to work with.

Today marks the 0.1 milestone release of JFXtras.  The components are not all complete, but are well documented and very usable for early adopters.

JFXtras Grid in Action

JFXtras Grid in Action

Some of the out-of-the-box components you can take advantage include:

  • The JFXtras Grid – Absolute positioning only goes so far, then you need some real layouts.  The JFXtras Grid supports resizable nodes, alignment, span, grow, and even column widths.
  • Dialog – The JFXtra Dialog provides a drop-in replacement for a Stage that will pop-up a real Java Dialog. This includes support for an owner window, modality, alwaysOnTop, the ability to hide the taskbar icon, and many other features.
  • Testing – The JFXtras test takes all the best testing concepts from junit, hamcrest, rspec, and others, and melds them together with a succinct declarative syntax.
  • Asynchronous Worker – Working on the theory that developers deserve their share of rope, JFXtras provides an asynchronous worker wrapper that allows you to execute pure JavaFX code on a background thread.

I will be writing in more depth about how to use the main features of JFXtras here on my blog, so please look forward to it!

 
Categories
Announcements, JavaFX, JFXtras
Comments rss
Comments rss
Trackback
Trackback

« Migrating from the JavaFX Preview Release Hacking JavaFX 1.0 to use Java 1.6 Features »

8 Responses to “JFXtras 0.1 Release – Grids, Dialogs, Testing, and more!”

  1. Dieter says:
    December 30, 2008 at 3:43 am

    Hi Steve,

    I am new in JavaFx. How I can integrate your features in (NetBean-) project?
    Dieter

    Reply
  2. steveonjava says:
    December 30, 2008 at 4:38 am

    Dieter,

    All you have to do is download the JFXtras.jar file and add it to your Libraries in the Project Properties dialog.

    Please also look over the Javadoc on the website or in the source bundle for more information about the available classes.

    Reply
  3. steveonjava says:
    December 30, 2008 at 5:34 am

    All,

    I posted a 0.1.1 patch release to fix the packaging structure for layout and shape to be consistent with the JavaFX APIs where they are nested beneath javafx.scene. I figured this is better to do ASAP before anyone gets too attached to the old package structure. Please grab the new files instead!

    Reply
  4. Sven Drieling says:
    December 30, 2008 at 8:22 am

    The JFXtras-0.1.1.jar contains the Window pathseperator \ instead of / so this .jar does not work on Linux.

    $ jar tf JFXtras-0.1.jar
    java.util.zip.ZipException: invalid entry size (expected 857866248 but got 102 bytes)

    $ unzip -l JFXtras-0.1.jar
    Archive: JFXtras-0.1.jar
    Length Date Time Name
    ——– —- —- —-
    102 12-29-08 06:25 META-INF\MANIFEST.MF
    2859 12-29-08 06:25 org\jfxtras\async\JFXWorker$1ObjectSwingWorker$anon1.class
    1308 12-29-08 06:25 org\jfxtras\async\JFXWorker$Intf.class

    $ javafx -classpath .:/home/joe/JFXtras-0.1.1.jar JFXStageTest
    Exception in thread “main” java.lang.NoClassDefFoundError: org/jfxtras/stage/JFXStage$Intf

    Workaround:

    Create new .jar

    unzip JFXtras-0.1.jar
    jar -cf JFXtras-0.1.jar META-INF/ org/

    Reply
  5. steveonjava says:
    December 30, 2008 at 5:56 pm

    Sven,

    I’ve posted a 0.1.1b version that fixes the packaging issue for Linux.

    Thanks for pointing this out and mentioning a workaround!

    Reply
  6. Sven Drieling says:
    December 31, 2008 at 8:40 am

    Hallo Steve,

    0.1.1b works fine.

    And provides many useful/missing features like Grid, JFXDialog.packed and JFXWorker :-)

    Reply
  7. Eric Kolotyluk says:
    January 9, 2009 at 9:13 am

    Where can we find the example source that implements the Span Layout window in your example? This page would be so much better if a link to the source were included.

    Currently I am finding the layout stuff equally frustrating to use as GridBag, worse actually because the FX tooling is still very fragile and the documentation is incomplete.

    Reply
  8. steveonjava says:
    January 12, 2009 at 5:43 am

    I will post a more detailed example to my blog soon, but for now here is a link to the Span Layout code:
    http://code.google.com/p/jfxtras/source/browse/trunk/test/org/jfxtras/scene/layout/SpanTest.fx

    Reply

Leave a Reply

Click here to cancel reply.

Publications

   

Upcoming Talks

JavaOne 2011

Android Open
Use code "WIDGETFX"
for 20% off!

JavaOne 2011

Steve On…

  • Everything
  • Agile
  • Flash
  • JavaFX

Archives

Affiliations

Awards

2009 JavaOne Rock Star!

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox