A hands-on playground repository for learning and experimenting with JavaFX. This project uses Maven for build management and is set up in VS Code.
-
Basic JavaFX Application
- Displays a window titled “Phantom Testing”
- Custom window icon (replaceable via
resources/)
-
Build & Run with Maven
- JavaFX 13
- Maven Compiler 11
- Getting Started
- Prerequisites
- Installation
- Running the App
- Project Structure
- Configuration
- Contributing
- License
- Contact
These instructions will help you get a copy of the project up and running on your local machine for learning and experimentation purposes.
- Java Development Kit (JDK) 11 or newer
- Apache Maven 3.6+
- VS Code (with Java and Maven extensions)
- Internet access to download JavaFX dependencies
-
Clone the repository
git clone https://github.com/sumoondev/JavaFX-Learning.git cd JavaFX-Learning -
Update
pom.xmlif needed- Ensure JavaFX version is set to
13 - Compiler source/target set to
11
- Ensure JavaFX version is set to
-
Download JavaFX SDK (if running without the Maven JavaFX plugin)
- Follow instructions at https://openjfx.io/
In VS Code:
- Open the project folder.
- Use the Run panel or right-click
App.java➜ Run Java.
JavaFX-Learning/
├── src/
│ └── phantom/
│ ├── App.java # Entry point, sets up the primary stage
│ ├── abcController.java # For controlling Scenes
│ ├── *.fxml
│ └── resources/images/
│ └── *.png # Any kind of image files
├── .gitignore
├── LICENSE
└── README.md
- MainApp.java – Initializes JavaFX Application, sets title
"Phantom Testing", and loads the icon. - resources/images/icon.png – Placeholder for your window icon.
- Group ID:
com.phantom - Artifact ID:
javafx-learning - Current Version:
0.0.1
All these are defined in your pom.xml under the <project> coordinates.
This project is licensed under the MIT License. See LICENSE for details.
For questions or feedback, open an issue or reach out to stu@sumoonbyanjankar.com.np.