/home/caleb/ASDV-Java/Semester 2/Assignments/JavaFX_CalebFontenot/src/javafx_calebfontenot/ShowCircle.java
/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package javafx_calebfontenot;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;

/**
 *
 * @author caleb
 */
public class ShowCircle extends Application {

    @Override
    public void start(Stage primaryStage) 
    {
        Pane pane = new Pane();                                                      // Create a pane object
        Scene scene = new Scene(pane, 300, 200);  // Create a scene object
        primaryStage.setScene(scene);                                           // Set the stage scene to the scene object
        primaryStage.show();                                                           // Make the window display on the screen
        Circle c = new Circle(20);                                                 // Create a circle object
        c.setCenterX(150);                                                            // Set the center X for the circle object to '150'
        c.setCenterY(80);                                                              // Set the center Y for the circle object to '80'
        c.setStroke(Color.BLUE);                                              // Set the circle outline to Blue
        c.setFill(Color.RED);                                                     // Set the interior of the circle to Red
        pane.getChildren().add(c);                                              // Add the circle object to the pane
    }
    public static void main(String[] args)
    {
        launch(args);
    }
}