/home/caleb/ASDV-Java/Semester 2/Assignments/JavaFX_CalebFontenot/src/javafx_calebfontenot/ShowCircle.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
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
public class ShowCircle extends Application {
@Override
public void start(Stage primaryStage)
{
Pane pane = new Pane();
Scene scene = new Scene(pane, 300, 200);
primaryStage.setScene(scene);
primaryStage.show();
Circle c = new Circle(20);
c.setCenterX(150);
c.setCenterY(80);
c.setStroke(Color.BLUE);
c.setFill(Color.RED);
pane.getChildren().add(c);
}
public static void main(String[] args)
{
launch(args);
}
}