/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ package radiobuttonsquared; import com.sun.javafx.runtime.VersionInfo; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.RadioButton; import javafx.scene.layout.StackPane; import javafx.stage.Stage; /** * * @author asakharu */ public class RadioButtonSquared extends Application { @Override public void start(Stage primaryStage) { RadioButton rb = new RadioButton("Radio button"); StackPane root = new StackPane(); root.getChildren().add(rb); Scene scene = new Scene(root); primaryStage.setTitle("RadioButton squared"); primaryStage.setScene(scene); primaryStage.show(); System.out.println(VersionInfo.getRuntimeVersion()); } /** * 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); } }