Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Name: George Colon Jr
- * Course Number: CSC-112-D01
- * Course Name: Interm Topic/Java Prgrmng
- * Email: gcolon6085@student.stcc.edu
- */
- import javafx.application.Application;
- import javafx.scene.Scene;
- import javafx.scene.layout.BorderPane;
- import javafx.stage.Stage;
- public class Main extends Application {
- public static void main(String[] args){
- launch(args);
- }
- @Override
- public void start(Stage primaryStage) {
- BorderPane bp = new BorderPane();
- TrafficLight trafficLight = new TrafficLight();
- TrafficLightRadioButtons trafficLightButtons = new TrafficLightRadioButtons(trafficLight);
- bp.setCenter(trafficLight);
- bp.setBottom(trafficLightButtons);
- primaryStage.setScene(new Scene(bp, 275, 600));
- primaryStage.setTitle("Traffic Light");
- primaryStage.setResizable(false);
- primaryStage.show();
- }
- }
Add Comment
Please, Sign In to add comment