Question
Demo:https://www.youtube.com/watch?v=KV1dEeG0qU0 On Image #6, the instructions are - A normal click should add a red Rectangle with width & height = 30. - A right
Demo:https://www.youtube.com/watch?v=KV1dEeG0qU0
On Image #6, the instructions are -
A normal click should add a red Rectangle with width & height = 30. - A right (meta) click should add a red Oval with width & height = 30. // Try to implement right-click, but some machines won't do this properly. If this is you, just ignore this one part. - A shift-click should add a blue Rectangle with width & height = 30 - An alt-click should add a blue Oval with width & height = 30. - A control-click should clear all the Drawable shapes
But make sure that it can be called as drawingSurfacePanel somewhere.
PLS ALL CODE IN JAVA
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