Write an application that draws a rectangle within a panel as shown in the attachment p10.png .
When user clicks in a point left of the rectangle, it moves 10px to left. It also moves to right by 10px if user clicks on a point right to the rectangle. Clicking in any other areas such as above, inside or below the rectangle will do nothing.© BrainMass Inc. brainmass.com March 22, 2019, 2:10 am ad1c9bdddf
Please rename 565681-DrawRect.java as DrawRect.java before you compile and execute the ...
Java compiler and Java version "1.7.0_21" were used during development and testing of the attached program. Response includes instructions to compile and execute the program at commandline.