package helloworld; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TableColumn; import javafx.scene.control.TableView; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.stage.Stage; public class Bug extends Application { public static void main(String[] args) { launch(args); } @Override public void start(final Stage stage) throws Exception { stage.setTitle("TableView Demo"); StackPane pane = new StackPane(); TableView tableView = new TableView(); TableColumn columnA = new TableColumn("A"); TableColumn columnB = new TableColumn("B"); tableView.getColumns().addAll(columnA, columnB); pane.getChildren().addAll(tableView); Scene scene = new Scene(pane, 300, 500, Color.DODGERBLUE); stage.setScene(scene); stage.show(); } }