Adding Circle to Group : Circle « JavaFX « Java

Adding Circle to Group


import java.util.List;

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

public class Main extends Application {

    public static void main(String[] args) {
    public void start(Stage primaryStage) {
        final Circle circ = new Circle(40, 40, 30);
        final Group root = new Group(circ);
        final Scene scene = new Scene(root, 400, 300);        


Related examples in the same category

1.Circle with DropShadow
2.Circle class creates a new circle with the specified radius and center location measured in pixels