Prerequisites
- JDK 11
- Recommended: IntelliJ IDE
- Fork this repo to your GitHub account and clone the fork to your computer
Importing the project into IntelliJ
- Open IntelliJ (if you are not in the welcome screen, click
File
>Close Project
to close the existing project dialog first). - Set up the correct JDK version.
- Click
Configure
>Structure for new Projects
(in older versions of Intellij:Configure
>Project Defaults
>Project Structure
). - If JDK 11 is listed in the drop down, select it. If it is not, click
New...
and select the directory where you installed JDK 11. - Click
OK
.
- Click
- Click
Import Project
. - Locate the project directory and click
OK
. - Select
Create project from existing sources
and clickNext
. - Rename the project if you want. Click
Next
. - Ensure that your src folder is checked. Keep clicking
Next
. - Click
Finish
.
dukeclasses.Duke Increment | Tutorial |
---|---|
A-Gradle |
Gradle Tutorial |
A-TextUiTesting |
Text UI Testing Tutorial |
Level-10 |
JavaFX tutorials: → Part 1: Introduction to JavaFX → Part 2: Creating a GUI for dukeclasses.Duke → Part 3: Interacting with the user → Part 4: Introduction to FXML |
- If you have feedback or bug reports, please post in se-edu/duke issue tracker.
- We welcome pull requests too.
#Acknowledgements
Credit to Jeffry Lum for the fxml and java files for JAVAFX GUI - JavaFx TutorialPart 4.
Acknowledgements FastReader.java was adapted from https://www.javatips.net/api/AlgoDS-master/src/timus/FastReader.java. However, I tweaked some components to cater to my own needs.
Thanos Image for GUI is from https://www.theverge.com/2018/4/16/17243794/avengers-infinity-wars-thanos-origin-story-marvel
Tony Stark Image is from https://pngimage.net/tony-stark-png-5/
Edith Image is from https://www.amazon.com/Glasses-Sticker-Trucks-Laptop-NOK163/dp/B07VS9NPPL
Solution for closing GUI window is adapted from https://stackoverflow.com/questions/52393982/javafx-problem-with-platform-runlater-delayed-rendering-of-canvas-graphic