Guest User

Untitled

a guest
Apr 22nd, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /*
  2. * Name: George Colon Jr
  3. * Course Number: CSC-112-D01
  4. * Course Name: Interm Topic/Java Prgrmng
  5. * Email: gcolon6085@student.stcc.edu
  6. */
  7.  
  8. import javafx.application.Application;
  9. import javafx.scene.Scene;
  10. import javafx.scene.layout.BorderPane;
  11. import javafx.stage.Stage;
  12.  
  13. public class Main extends Application {
  14. public static void main(String[] args){
  15. launch(args);
  16. }
  17.  
  18. @Override
  19. public void start(Stage primaryStage) {
  20. BorderPane bp = new BorderPane();
  21. TrafficLight trafficLight = new TrafficLight();
  22. TrafficLightRadioButtons trafficLightButtons = new TrafficLightRadioButtons(trafficLight);
  23.  
  24. bp.setCenter(trafficLight);
  25. bp.setBottom(trafficLightButtons);
  26.  
  27. primaryStage.setScene(new Scene(bp, 275, 600));
  28. primaryStage.setTitle("Traffic Light");
  29. primaryStage.setResizable(false);
  30. primaryStage.show();
  31. }
  32. }
Add Comment
Please, Sign In to add comment