import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class WebView1 extends Application {

    public static void main(String[] args) {
        Application.launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {

        WebView webView = new WebView();
        WebEngine engine = webView.getEngine();

        engine.loadContent("<html><body contenteditable=\"true\"><ul><li>try press ENTER here</li><li>or here</li></ul> ... or here</body></html>");

        BorderPane layout = new BorderPane();
        layout.setCenter(webView);

        Scene s = new Scene(layout);
        primaryStage.setScene(s);
        primaryStage.show();
    }
} 