diff --git a/src/hanoi/Foablak.fxml b/src/hanoi/Foablak.fxml index 4c72ce8..a2f6a07 100644 --- a/src/hanoi/Foablak.fxml +++ b/src/hanoi/Foablak.fxml @@ -1,7 +1,51 @@ - + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
diff --git a/src/hanoi/FoablakController.java b/src/hanoi/FoablakController.java index b5b5bc7..fd46aaf 100644 --- a/src/hanoi/FoablakController.java +++ b/src/hanoi/FoablakController.java @@ -1,5 +1,40 @@ package hanoi; +import java.net.URL; +import java.util.ResourceBundle; +import javafx.event.ActionEvent; +import javafx.fxml.FXML; +import javafx.scene.control.Button; +import javafx.scene.control.Spinner; +import javafx.scene.control.TextField; + public class FoablakController { - + + @FXML + private ResourceBundle resources; + + @FXML + private URL location; + + @FXML + private TextField nevMezo; + + @FXML + private Spinner kspin; + + @FXML + private Button playGomb; + + @FXML + void playGombAction(ActionEvent event) { + + } + + @FXML + void initialize() { + assert nevMezo != null : "fx:id=\"nevMezo\" was not injected: check your FXML file 'Foablak.fxml'."; + assert kspin != null : "fx:id=\"kspin\" was not injected: check your FXML file 'Foablak.fxml'."; + assert playGomb != null : "fx:id=\"playGomb\" was not injected: check your FXML file 'Foablak.fxml'."; + nevMezo.setText("Névtelen"); + } } diff --git a/src/hanoi/Main.java b/src/hanoi/Main.java index 6b30c4c..f5ccba8 100644 --- a/src/hanoi/Main.java +++ b/src/hanoi/Main.java @@ -15,6 +15,7 @@ public class Main extends Application { Scene scene = new Scene(root,400,400); scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); + primaryStage.setTitle("Hanoi tornyai játék"); primaryStage.show(); } catch(Exception e) { e.printStackTrace();