import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.scene.shape.*; import javafx.scene.paint.Color; public class DeathlyHallows extends Application { @Override public void start(Stage teater) { final double r = 63; Circle stein = new Circle(r); stein.setCenterX(100); stein.setCenterY(224-r); stein.setStroke(Color.BLACK); stein.setStrokeWidth(4); stein.setFill(Color.WHITE); Line stav = new Line(100,224, 100,0); stav.setStroke(Color.BROWN); stav.setStrokeWidth(4); Polygon kappe = new Polygon(0,224, 200,224, 100,0); kappe.setStroke(Color.PURPLE); kappe.setStrokeWidth(4); kappe.setFill(Color.WHITE); Pane kulisser = new Pane(); kulisser.getChildren().add(kappe); kulisser.getChildren().add(stein); kulisser.getChildren().add(stav); Scene scene = new Scene(kulisser); teater.setTitle("The deathly hallows"); teater.setScene(scene); teater.show(); } public static void main(String arg[]) { launch(arg); } }