Draw a rough picture of the window produced by this code public class Main extends Application { @Override public void s

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Draw a rough picture of the window produced by this code public class Main extends Application { @Override public void s

Post by answerhappygod »

Draw A Rough Picture Of The Window Produced By This Code Public Class Main Extends Application Override Public Void S 1
Draw A Rough Picture Of The Window Produced By This Code Public Class Main Extends Application Override Public Void S 1 (172.15 KiB) Viewed 30 times
Draw a rough picture of the window produced by this code public class Main extends Application { @Override public void start(Stage primaryStage) { HBox data = new HBox(10); Label nameLBL = new Label("Name:"); TextField name TXT = new TextField(); Button addBTN = new Button("Add"); data.getChildren() .addAll(nameLBL, nameTXT, addBTN); GridPane grid = new GridPane(); Label LBL1 = new Label("One"); Label LBL2 = new Label("Two"); Label LBL3 = new Label("Three"); Label LBL4 = new Label("Four"); Label LBL5 = new Label("Five"); Label LBL6 = new Label("Six"); grid.add(LBL1, 0, 0); grid.add(LBL2, 1, 0); grid.add(LBL3, 2, 0); grid.add(LBL4, 3, 0); grid.add(LBL5, 4, 0); grid.add(LBL6, 0, 1, 5, 1); Border Pane root = new BorderPane(); root.setBottom (new Label("JAVA FX LAYOUT")); root.setCenter(grid); root.setTop (data); Scene scene = new Scene (root, 400,200); primaryStage.setScene (scene); primaryStage.setTitle("Testing FX"); primaryStage.show(); } public static void main(String[] args) { Launch(args); }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply