Write Java Program Implement Graphic Bounce Program Use Button Add Graphics Automatically Q37082062

Write a Java program to implement the Graphic bounce program.Use the button to add graphics and automatically move in onedirection, bounce and move on after encountering the boundary. YourGUI will consist of three buttons labeled “Add a Square”, “Add aCircle”, and “Add a Triangle”, and a JLabel containing an Iconobject where the geometric shapes will be drawn. The Icon should600 pixels wide and 400 pixels in height, and should contain arectangle that shows its boundary. Clicking on any button will addthe corresponding shape to the icon.

All shape objects must implement the BouncingShape interfacegiven at the end of this handout. Each

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.