aboutsummaryrefslogtreecommitdiff
path: root/src/main/jfxTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/jfxTest.java')
-rw-r--r--src/main/jfxTest.java49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/main/jfxTest.java b/src/main/jfxTest.java
deleted file mode 100644
index 6cc7f93..0000000
--- a/src/main/jfxTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package main;
-
-import javafx.application.Application;
-import javafx.event.ActionEvent;
-import javafx.event.EventHandler;
-import javafx.scene.Scene;
-import javafx.scene.control.Button;
-import javafx.scene.effect.BlurType;
-import javafx.scene.effect.DropShadow;
-import javafx.scene.layout.GridPane;
-import javafx.scene.layout.StackPane;
-import javafx.scene.paint.Color;
-import javafx.scene.shape.Rectangle;
-import javafx.scene.text.Font;
-import javafx.scene.text.FontWeight;
-import javafx.scene.text.Text;
-import javafx.stage.Stage;
-
-public class jfxTest extends Application {
- public static void main(String[] args) {
- launch(args);
- }
-
- @Override
- public void start(Stage primaryStage) {
- primaryStage.setTitle("Title");
- Button btn = new Button();
- btn.setText("Say 'Hello World'");
- btn.setOnAction(new EventHandler<ActionEvent>() {
-
- @Override
- public void handle(ActionEvent event) {
- System.out.println("Hello World!");
- }
- });
-
- Block rect = new Block(Color.RED);
-
-
-
- GridPane root = new GridPane();
- root.gridLinesVisibleProperty();
- root.add(rect,1,0);
- root.add(btn,0,1);
- primaryStage.setScene(new Scene(root, 300, 250));
- primaryStage.show();
-
- }
-} \ No newline at end of file