/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ package bug; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.scene.web.HTMLEditor; import javafx.stage.Stage; public class Bug extends Application { VBox root = new VBox(5); VBox content = new VBox(); public static void main(String[] args) { launch(Bug.class, args); } protected Scene getScene() { return new Bug.MenuBarAppScene(); } @Override public void start(Stage stage) throws Exception { stage.setScene(getScene()); stage.show(); } public class MenuBarAppScene extends Scene { public MenuBarAppScene() { super(root = new VBox(5)); content = new VBox(); content.setPrefSize(600, 400); content.setMinSize(600, 400); content.setMaxSize(600, 400); HTMLEditor editor = new HTMLEditor(); content.getChildren().add(editor); root.getChildren().add(content); } } }