Getting The Source Code For JavaFX UI

Execute: hg clone http://hg.openjdk.java.net/openjfx/2.1/master/rt
and you will get the source for the JavaFX UI controls with a NetBeans project.

After adding a single class:

package com.sun.javafx;

public class PlatformUtil {

    public static boolean isMac() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    public static boolean isWindows() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
    
}

and referencing the jfxrt.jar, the code becomes even compilable
Enjoy!


NEW MUC Airport Workshop: Migrating Java Client (Swing / Java FX) to Web Standards

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

I wish get the source code of jfxrt.jar,thank you!

Posted by hua on February 24, 2013 at 05:32 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License