/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.StackPane; import javafx.scene.web.HTMLEditor; import javafx.stage.Stage; /** * * @author akouznet */ public class Bug extends Application { /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { HTMLEditor htmlEditor = new HTMLEditor(); htmlEditor.setStyle("-fx-background-color: red;"); StackPane root = new StackPane(); root.getChildren().add(htmlEditor); Scene scene = new Scene(root, 300, 800); primaryStage.setScene(scene); primaryStage.show(); } }