Adam Bien's Weblog

Saturday Dec 03, 2011

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* Workshop: "Real World Java EE 6/7 Bootstrap" and book: Real World Java EE Night Hacks--Dissecting the Business Tier

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
Meta
My Recent Book
Java One 2009/2011
...the last 150 posts
...the last 10 comments
Links
License