/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ package blackscene; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.stage.Stage; /** * * @author asakharu */ public class BlackScene extends Application { @Override public void start(Stage primaryStage) { TabPane root = new TabPane(); Tab tab = new Tab("Tab"); tab.setContent(new Button("Button")); root.getTabs().add(tab); Scene scene = new Scene(root, 300, 250); primaryStage.setTitle("Black background"); primaryStage.setScene(scene); primaryStage.show(); } /** * The main() method is ignored in correctly deployed JavaFX application. * main() serves only as fallback in case the application can not be * launched through deployment artifacts, e.g., in IDEs with limited FX * support. NetBeans ignores main(). * * @param args the command line arguments */ public static void main(String[] args) { launch(args); } }