# JavaFx **Repository Path**: hkid/javafx ## Basic Information - **Project Name**: JavaFx - **Description**: JavaFx入门项目,结合SpringBoot和Maven,实现Excel拆分,并用jpackage打包发布形成可双击运行的.exe程序。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-08-20 - **Last Updated**: 2025-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: Javafx ## README # JavaFX Spring Boot Application Project This is a desktop application project based on JavaFX and Spring Boot, aiming to provide a graphical user interface through JavaFX and combine with Spring Boot for backend support. This project is mainly used for parsing Excel files and provides user interaction operations. ## Project Structure Overview - **`buildExe.cmd`**: Script used to build executable files. - **`pom.xml`**: Maven project configuration file that defines the project's dependencies and build configurations. - **`src/main/java/com/yueyue/javafx/`**: Core Java source code directory. - `JavafxApplication.java`: Main class of the Spring Boot application. - `MainController.java`: JavaFX interface controller responsible for handling user interactions and business logic. - `MyJavaFXSpringBootApp.java`: Main class of the JavaFX application, inherited from `Application`. - **`src/main/resources/`**: Resource files directory. - `application.yml`: Spring Boot configuration file. - `templates/main.fxml`: JavaFX main interface layout file. - **`src/test/java/com/yueyue/javafx/`**: Test code directory. - `JavafxApplicationTests.java`: Unit tests for the Spring Boot application. ## Features - Build a graphical user interface using JavaFX. - Use Spring Boot to provide dependency injection and backend services. - Support selecting directories and Excel files for parsing. - Provide user interaction buttons and prompt box functionality. - Support outputting Excel data to a target file by specifying columns. ## Quick Start ### Requirements - Java 17 or higher - Maven 3.x - Git ### Build and Run 1. **Clone the project** ```bash git clone https://gitee.com/hkid/javafx.git cd javafx ``` 2. **Build the project** ```bash mvn clean package ``` 3. **Run the application** ```bash java -jar target/javafx-0.0.1-SNAPSHOT.jar ``` Or use `buildExe.cmd` to build the executable file and run it. ### Usage Instructions - After launching the application, the interface will display a JavaFX window. - Click the buttons to select the source Excel file and target directory. - Choose the columns to be parsed and click the submit button to start parsing. - The parsing results will be displayed on the interface or output to the specified directory. ## Contribution Guide Code contributions and project improvements are welcome. Please follow the steps below: 1. Fork the project repository. 2. Create a new branch (`git checkout -b feature/new-feature`) 3. Commit changes (`git commit -am 'Add some feature'`) 4. Push the branch (`git push origin feature/new-feature`) 5. Submit a Pull Request ## License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. --- If you have any questions or suggestions, please submit feedback in the Issues section.