Updated readme; Init projekt

- Updated the README file
- Created a IDEA project inside the folder
This commit is contained in:
Stefan-5422
2022-02-11 10:07:18 +01:00
parent 4bd8549125
commit 3996d6383b
14 changed files with 274 additions and 2 deletions
@@ -0,0 +1,23 @@
package com.yes.yes;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class HelloApplication extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
stage.setTitle("Hello!");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}
@@ -0,0 +1,14 @@
package com.yes.yes;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
public class HelloController {
@FXML
private Label welcomeText;
@FXML
protected void onHelloButtonClick() {
welcomeText.setText("Welcome to JavaFX Application!");
}
}
+8
View File
@@ -0,0 +1,8 @@
module com.yes.yes {
requires javafx.controls;
requires javafx.fxml;
opens com.yes.yes to javafx.fxml;
exports com.yes.yes;
}