Algorithm Visualizer in Java
Developed by @Rustam-Z and @Alimov-8
Demo video: https://youtu.be/huR1NSwUnAY
Finish date: December 13, 2020
Project Features
- Sorting Algorithms Visualizer
DONE
- Picture Puzzle Sorter
TODO
- Pathfinding algorithm
TODO
First Prototype
How to run?
javac AlgorithmVisualizer.java
java AlgorithmVisualizer
Skills Gained
- Multi-Threading using Swing Worker
- Customizing Swing Components
- Working with Graphics 2D
- Different sorting algorithms
References:
- https://clementmihailescu.github.io/Sorting-Visualizer/
- https://www.geeksforgeeks.org/java-swing-jmenubar/
- https://stackoverflow.com/questions/31094904/jmenu-not-appearing-until-window-is-resized
- https://stackoverflow.com/questions/4716372/java-how-do-i-close-a-jframe-while-opening-another-one
- First prototype video: https://www.youtube.com/watch?v=RxjXC1SM1A4
- https://stackoverflow.com/questions/4246351/creating-random-colour-in-java
- https://stackoverflow.com/questions/782265/how-do-i-use-swingworker-in-java
- https://docs.oracle.com/javase/tutorial/essential/concurrency/sleep.html
- https://stackoverflow.com/questions/1097366/java-swing-revalidate-vs-repaint
- Merge sort: https://www.baeldung.com/java-merge-sort
- http://www.java2s.com/Tutorials/Java/Swing/JSlider/Add_change_event_listener_to_a_JSlider_in_Java.htm