Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started