A JavaFX MVC project built with Maven.
- Open IntelliJ IDEA
- Click "Open" (NOT "New Project")
- Navigate to and select the StudentManagementApp folder
- IntelliJ will detect the
pom.xml— click "Open as Maven Project" when prompted - Wait for Maven to download dependencies (needs internet, ~1 minute)
- Open
src/main/java/application/Main.java - Click the green ▶ Run button next to the
main()method
In the IntelliJ terminal at the bottom, type:
mvn javafx:run
- Java 17 or higher
- IntelliJ IDEA (Community or Ultimate)
- Internet connection (first time only, to download JavaFX via Maven)
StudentManagementApp/
├── pom.xml ← Maven config + JavaFX dependencies
└── src/
└── main/
├── java/
│ ├── module-info.java ← Java module declaration
│ └── application/
│ ├── Main.java ← Entry point (launches app)
│ ├── Student.java ← Model (data)
│ └── StudentController.java ← Controller (logic)
└── resources/
└── application/
└── student.fxml ← View (UI layout)
| File | MVC Role | Responsibility |
|---|---|---|
| Student.java | Model | Stores student data |
| student.fxml | View | Defines the UI |
| StudentController.java | Controller | Handles button clicks, validation |
| Main.java | Launcher | Starts the application |