diff --git a/pom.xml b/pom.xml index a79dd7e..a05c7c9 100644 --- a/pom.xml +++ b/pom.xml @@ -559,6 +559,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + org.springframework.boot spring-boot-maven-plugin diff --git a/src/test/java/com/zhangmeng/tools/JavaFxToolsApplicationTests.java b/src/test/java/com/zhangmeng/tools/JavaFxToolsApplicationTests.java deleted file mode 100644 index 2ee03c0..0000000 --- a/src/test/java/com/zhangmeng/tools/JavaFxToolsApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.zhangmeng.tools; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class JavaFxToolsApplicationTests { - - @Test - void contextLoads() { - } - -} diff --git a/src/test/java/com/zhangmeng/tools/Main.java b/src/test/java/com/zhangmeng/tools/Main.java deleted file mode 100644 index afcf07f..0000000 --- a/src/test/java/com/zhangmeng/tools/Main.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.zhangmeng.tools; - -import com.zhangmeng.tools.utils.AlertUtils; -import javafx.application.Application; -import javafx.scene.Node; -import javafx.scene.Parent; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.AnchorPane; -import javafx.scene.media.Media; -import javafx.scene.media.MediaPlayer; -import javafx.stage.Modality; -import javafx.stage.Stage; -import javafx.stage.StageStyle; -import javafx.stage.Window; - -import java.net.URL; - -/** - * @author : 芊芊墨客 - * @version : 1.0 - * @date : 2023-02-16 16:13 - */ -public class Main extends Application { - - @Override - public void start(Stage primaryStage) throws Exception { - Button button = new Button("1111"); - AnchorPane anchorPane = new AnchorPane(); - anchorPane.getChildren().add(button); - - button.setOnAction(event -> { - - AnchorPane pane = new AnchorPane(); - pane.getChildren().add(new Button("66666")); - - alert("弹窗",pane,primaryStage); - }); - primaryStage.setScene(new Scene(anchorPane)); - primaryStage.setTitle("test"); - primaryStage.setWidth(800); - primaryStage.setHeight(600); - primaryStage.show(); - - } - public static void alert(String title, Parent node,Stage primaryStage){ - alert(title,node,600,400,primaryStage); - } - public static void alert(String title, Parent node, int width, int height, Stage primaryStage) { - Scene scene = new Scene(node); - Stage stage = new Stage(); - stage.setScene(scene); - stage.setTitle(title); - stage.setWidth(width); - stage.setHeight(height); - stage.initStyle(StageStyle.UTILITY); - stage.initOwner(primaryStage); - stage.initModality(Modality.APPLICATION_MODAL); - stage.show(); - } -} diff --git a/src/test/java/com/zhangmeng/tools/Test.java b/src/test/java/com/zhangmeng/tools/Test.java deleted file mode 100644 index 267892e..0000000 --- a/src/test/java/com/zhangmeng/tools/Test.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.zhangmeng.tools; - -import javafx.application.Application; - -/** - * @author : 芊芊墨客 - * @version : 1.0 - * @date : 2023-02-16 16:18 - */ -public class Test { - - public static void main(String[] args) { - Application.launch(Main.class); - } -}