Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROGRAM SPECIFICATIONS Beginning with the file that you downloaded named Proj06.java, create a new file named Proj06Runner.java to meet the specifications given below. Note

image text in transcribedimage text in transcribed

PROGRAM SPECIFICATIONS Beginning with the file that you downloaded named Proj06.java, create a new file named Proj06Runner.java to meet the specifications given below. Note that you must not modify the code in the file named Proj06.java. Make sure that you understand the comments and the code in that file. Be sure to display your name in both locations in the output as indicated. When you place both files in the same folder, compile them both, and run the file named Proj06.java, the program must display the text shown below on the command line screen. Note however that the border widths may vary from one system to the next. The border widths are being displayed to help you understand the coordinate values on your system. I certify that this program is my own work and is not the work of others. I agree not to share my solution with others. Replace this line with your name The Frame width = 300 The Frame height = 100 Top border = 30 pixels Left border = 7 pixels Right border Bottom border = = 7 pixels 7 pixels In addition, your program must display a single 300-pixel by 100-pixel Frame object as shown in the images below. When you click the mouse in the working area of the Frame, the coordinates of the mouse pointer must be shown in RED above the mouse pointer. (Multiple images are shown below to show the result of clicking at different locations in the working area of the Frame. Note that the 0,0 coordinate location is at the outer upper-left corner of the Frame object, which is beyond the reach of the mouse pointer. Also note that the minimum possible values that can be displayed in full for the x and y coordinates are determined by the width of the left and top borders as well as your font size.) When you click the X-button in the upper-right corner of the Frame object, the program must terminate and MUST RETURN CONTROL TO THE OPERATING SYSTEM. You may find it necessary to consult the Java documentation and take class inheritance into account to meet these specifications. Display your name here x=4, y = 30 Display your name here x=5,y=94 Display your name here x=210, y = 94

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

Step: 3

blur-text-image

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

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions

Question

Differentiate. y = In (x + 1) 4 (x + 2) / x-1

Answered: 1 week ago