You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zweiundvierzig/Greenfoot.java

36 lines
850 B
Java

package greenfootReplacement;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
/**
Ersetzt die Greenfoot Klasse von Greenfoot und hält das Programm am Laufen.
*/
public class Greenfoot extends Application {
private Stage mainStage = null;
private World currentWorld = null;
public static void main(String[] args) {
launch(args);
}
@Override public void start(Stage primaryStage) throws Exception {
mainStage = primaryStage;
mainStage.setTitle("Zweiundvierzig - Greenfoot as JavaFX");
setWorld(new Start_Load());
mainStage.show();
}
public static void setWorld(World w) {
currentWorld = w;
mainStage.setScene(currentWorld);
}
}