(Geometry : two rectangles) Write a program that passes the center coordinates, width and height of two rectangles from the command line as follows:
java Exercise13_32 x1 y1 w1 h1 x2 y2 w2 h2
The program displays the rectangles in panel and a message indicating whether the two are overlapping, whether one is contained in the other or whether they don't overlap, as shown in he figure below. Display the message in a label .
You will not run this program through the command window () but through the console as seen in the example below.
(picture of the frame in here, see the attached file)© BrainMass Inc. brainmass.com October 10, 2019, 7:03 am ad1c9bdddf
Java GUI determine if two rectangles overlap