Advertisement
luliu

Stan Marsh CLASS

Apr 1st, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.44 KB | None | 0 0
  1. /*
  2.  * Name: Lu Liu
  3.  * Date: 4/1/2016
  4.  * Course Number: CSC-112
  5.  * Course Name: Intermediate Topics in Java Programming
  6.  * Email: lliu0001@student.stcc.edu
  7.  *
  8.  * Assignment: HW # 12
  9.  * Programe Description:
  10. * Stan Marsh Class
  11.  * South Park's Stan Marsh Rendering Graphics Assignment
  12.  *
  13.  */
  14.  
  15. import javafx.application.Application;
  16. import javafx.scene.Group;
  17. import javafx.scene.Scene;
  18. import javafx.scene.image.Image;
  19. import javafx.scene.image.ImageView;
  20. import javafx.scene.layout.BorderPane;
  21. import javafx.scene.layout.HBox;
  22. import javafx.scene.layout.Pane;
  23. import javafx.scene.layout.StackPane;
  24. import javafx.scene.paint.Color;
  25. import javafx.stage.Stage;
  26. import javafx.scene.shape.Arc;
  27. import javafx.scene.shape.ArcType;
  28. import javafx.scene.shape.Circle;
  29. import javafx.scene.shape.Ellipse;
  30. import javafx.scene.shape.Line;
  31. import javafx.scene.shape.Rectangle;
  32.  
  33. public class StanMarch extends Application {
  34.     @Override // Override the start method in the Application class
  35.     public void start(Stage primaryStage) {
  36.         // Create a pane StanMarch Pane
  37.         StanMarchPane pane = new StanMarchPane();
  38.  
  39.         // Create a scene and place it in the stage
  40.         Scene scene = new Scene(pane, 350, 500);
  41.         primaryStage.setTitle("Stan March"); // Set the stage title
  42.         primaryStage.setScene(scene); // Place the scene in the stage
  43.         primaryStage.show(); // Display the stage
  44.     }
  45.  
  46.     public static void main(String[] args) {
  47.         launch(args);
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement