Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a GUI application in Java using Swing that has a three buttons and a drawing area. The buttons should be at the top of

image text in transcribed

Write a GUI application in Java using Swing that has a three buttons and a drawing area. The buttons should be at the top of the window. The buttons should be labeled as "swap", "center" and your name. 1. Give the window an initial size of 800 x 600 pixels, and put your name in the menu bar 3. The drawing area should cover the remainder of the window 4. 2. When it starts, the program should show an oval with your name in the center of it (that is not an image of an oval). Also, it should show an image of your choice read in from a file somewhere on the screen. The background of the drawing area should be a non-white color 5. Pressing the "center" should cause both the the oval to move to the center of the window. You must also be able to click and drag the oval with your name or the image around the screen independently with the mouse 6. 7. When you click the "swap" button, the oval and image should swap positions on the screen. When the user presses the button with your name on it, the program should do something else not described in the assignment that is unique to your program, such as change the color of all the things you draw, switch the oval to be outlines instead of filled, or something like that 8. 9. As always, make sure the proper block comment is at the top of your main file with your name 10. Once your program is working, pass it off directly to the instructor or TA. Also, tun in your code to D2L

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions

Question

Windows Server does not include iSCSI target capabilities.

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago

Question

What are some of the possible scenes from our future?

Answered: 1 week ago