Question: java program that draws a hexagon in the middle of the frame. When the user clicks on a hexagon, it then replaces it with 4
java program that draws a hexagon in the middle of the frame. When the user clicks on a hexagon, it then replaces it with 4 smaller hexagons, each of which is a quarter of the size of the original hexagon and has a random color. If user stops clicking (i.e., remains inactive for 15 seconds), all hexagons should start moving in random directions (any speed is fine, overlaps are fine but not preferred). If user presses 'ESC', the frame is cleared and you start all over again. Test your program to draw unique patterns.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
