Browser Component in JavaFX Beta2

Played with the JavaFX2 Beta SDK and was impressed with what they done with it so far! I was eager to see what acid3 score the webview component would get and this my result..

That’s cool. (In swing we are just limited to html 3.2! )

The code for the above I took from this blog (shows how to embed javafx controls inside Swing)

http://a1o1.posterous.com/java-fx20-embedding-webview-in-swing

But made the following change… (guessing the API must have changed slightly for the beta sdk)

Sequence<Node> children = root.getChildren();
children.add(browser);

ObservableList<Node> children = root.getChildren();
children.add(browser);

I guess, now that we have this Webcomponent in JavaFX2, this RFE (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4296022)  will never the see the light of day! 🙂

 

Leave a Reply

Your email address will not be published. Required fields are marked *