Final Debugger for COMP250 at McGill University
This project uses JavaFX for the GUI. JavaFX is the latest graphics library for Java, and for the features it adds will be worth the effort, I promise.
Direct Links: Windows Mac Linux
Extract the downloaded library to a folder of your choice.
For my example (Windows), I extracted it to a folder C:\Libraries\Java\javafx-sdk-14\
Do the same if you want to follow along exactly.
VCS -> Get from Version Control... -> Paste the URL of this repository
File -> Import -> Git -> Projects from Git (With Smart Import) -> Clone URI -> paste URL of this repository into the URI box -> Click next a bunch, setting directory at your own discression, Master branch from origin. All else default -> Finish
Do the below using Finder or File Explorer, not your IDE: Add your assignment .java files and any of your own classes to the COMP250_A4_W2020 package, in the location of Put Your java files here.txt.
NOTE: You must add the files from the professor's stress tester (.java files into the same place as your code) (.csv and .txt support files into the root directory)
NOTE: You must add your .java files into this project.It will not work if you drag my files into your project unless you really know what you are doing.
Open the cloned project in your IDE.
Click: File -> Project Structure -> Libraries -> + -> Java -> Navigate to the "lib" folder inside of the JavaFX SDK you downloaded.
Attempt to run MainWindow.java
. This will fail. It's ok.
Click:
Run -> Edit Configurations -> Select MainWindow -> under VM Options, paste: --module-path YOUR PATH HERE --add-modules javafx.controls,javafx.fxml
Where "YOUR PATH HERE" is the path of your JavaFX library download (for me it's C:\Libraries\Java\javafx-sdk-14\lib)
Attempt to run MainWindow.java
again. It should work.
For more detail, read the official instructions
If you want to collaborate on an easy intsall procedure for Eclipse, please fork this repository or contact me!
Step 1: Intstall IntelliJ IDEA, it is free for students.
I presently do not offer Eclipse support for the runtime analysis part of this application. This will change as more brave users test JavaFX setup in eclipse.
Remove the COMP250_A4_W2020_Test_Visualizer_JFX folder from your directory.
You may still run unit tests by running HashTableUnitTester.java
Feel free to fork and pull request this repository. If you have any questions, concerns, or feedback do not hesitate to contact me at sasha@sashaphoto.ca