@@ -0,0 +1,925 @@
+import javafx.application.Application;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.web.WebEngine;%0Aimport javafx.scene.web.WebView;%0Aimport javafx.stage.Stage;%0A%0Apublic class WebWebViewWithCSS extends Application %7B%0A%0A    public static final String HTML = %22%3C!DOCTYPE html%3E%22%0A        + %22%3Chtml%3E%22%0A        + %22%3Chead%3E%22%0A        + %22    %3Cmeta charset=%5C%22UTF-8%5C%22%3E%22%0A        + %22    %3Cstyle type=%5C%22text/css%5C%22%3E%22%0A        + %22* %7Bcolor: #0f0;%7D%22%0A        + %22body %7Bbackground-color: #f00;%7D%22%0A        + %22    %3C/style%3E%22%0A        + %22%3C/head%3E%22%0A        + %22%3Cbody%3EHello !%3C/body%3E%22%0A        + %22%3C/html%3E%22;%0A%0A    public void start(Stage stage) %7B%0A        final WebView browser = new WebView();%0A        final WebEngine webEngine = browser.getEngine();%0A%0A        webEngine.loadContent(HTML);%0A%0A        Scene scene = new Scene(browser);%0A%0A        stage.setScene(scene);%0A        stage.show();%0A    %7D%0A%0A    public static void main(String %5B%5D args) %7B%0A        launch(args);%0A    %7D%0A%0A%7D%0A

Add a snippet.