PROGRAM SPECIFICATIONS Beginning with the file that you downloaded named Proj06.java, create a new file named...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
1. The differential revenue and differential cost details of Ivan Company's tailoring segment are provided. From the given details, calculate the differential operating income for Ivan's tailoring...
-
UCW Co is a listed company selling computer software. Its profit before interest and tax has fallen from $ 5 million to $ 1 million in the last year, and its current financial position is as follows:...
-
What is the important role of financial management in a company and explain how the financial market environment influences the company's managerial decisions. Give concrete examples of decisions...
-
The following is accounting information taken from Woodrail Company's adjusted trial balance for 2016: In addition, the following changes occurred in selected accounts during 2016: Required: Using...
-
On January 1, 2015, one U.S. dollar can be exchanged for eight foreign currencies (FC). The dollar can be invested short term at a rate of 4%, and the FC can be invested at a rate of 5%. 1. Calculate...
-
A stock solution contains 51.38 mmol KMnO 4 /L. How can you use pipets in Table 2-4 plus a 100- or 250-mL volumetric flask to obtain approximately 1, 2, 3, and 4 mmol KMnO 4 /L? What will be the...
-
How does solid enter into washing calculations? Where does solids flow rate implicitly appear in Figure 14-1? Feed U, xo A Mixer Settler B Underflow Stage I Overflow 0112 Stage 2 U | 2 N-1 N Uo,xo xj...
-
The following data refer to San Fernando Fashions Company for the year 20x2: Sales revenue ...........................................................................$950,000 Work-in-process...
-
Using the demand forecast, constraints and costs. Find the beginning inventory, production (regular and overtime) and ending inventory for each of the four quarters
-
A plane travels a distance of 5.0x10 m north while being accelerated uniformly from rest at the rate of 5.0 m/s?. What final velocity does it attain?
-
Investigate the role of the mitotic spindle in chromosome segregation, focusing on the dynamic assembly of microtubules and the regulation of motor proteins. What are the implications of spindle...
-
Explore the mechanisms of chromosome imprinting and its role in genomic regulation. What epigenetic marks define imprinted regions, and how do errors in imprinting contribute to developmental...
-
The Treasury Board of Canada Secretariat (TBS) has implemented a Risk Management Framework to ensure that risk management is integrated into all levels of decision-making. TBS regularly reviews and...
-
compare and contrast two of the organizational structures mentioned and discuss the pros and cons of each. functional structure organization structure program organization structure
-
Analyze the role of histone modifications and chromatin remodeling in regulating chromosome structure and function. How do alterations in histone acetylation, methylation, or phosphorylation affect...
-
Feller owned land in a residential area that was zoned to permit two-family homes. The deed for Fellers land contained a restrictive covenant prohibiting the construction of any buildings other than...
-
Draw the major product for each of the following reactions: (a) (b) (c) 1) 9-BBN 2) H2O2, NaOH 1) Disiamylborane 2) H20, NaOH
-
Determine the total estimated cost at completion and estimated cost to complete for the project in Problem 12, assuming the CPI remains the same through the remainder of the job. Data From Problem...
-
Determine the total estimated cost at completion and estimated cost to complete for the project in Problem 13, assuming the CPI remains the same through the remainder of the job. Data From Problem...
-
Create a cost-loaded spreadsheet like the one shown in Figure 7-5 . The spreadsheet should handle 12 weeks and 20 tasks. Data From Figure 7-5 Task Mobilization Cost Start Finish Week 1 Week 2 Week 3...
Study smarter with the SolutionInn App