Beginning with the file that you downloaded named Proj08.java, create a new file named Proj08Runner.java to meet the spe

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Beginning with the file that you downloaded named Proj08.java, create a new file named Proj08Runner.java to meet the spe

Post by answerhappygod »

Beginning with the file that you downloadednamed Proj08.java, create a new filenamed Proj08Runner.java to meet thespecifications given below.
Note that you must not modify the code in the filenamed Proj08.java.
Be sure to display your name in both locations in the output asindicated.
When you place both files in the same folder, compile them both,and run the file named Proj08.java, theprogram must display the text shown below on the command linescreen.
In addition, your program must display a single 300-pixel by100-pixel Frame object as shown in theimage below in the upper-left corner of the screen.
When you move your mouse pointer around inside the client areaof the frame, without pressing either mouse button, the coordinatesof the mouse pointer appear directly above the pointer. In thiscase, the coordinates are displayed using blackcharacters.
When you move your mouse pointer around inside the client areaof the frame, while pressing either mouse button, the coordinatesof the mouse pointer appear directly above the pointer. In thiscase, the coordinates are displayed using red characters.
When you click the [ X ] button (the right-most button in thegroup of 3 buttons in the upper-right corner ofthe Frame object), the program mustterminate and MUST RETURN CONTROL TO THE OPERATING SYSTEM.
Beginning With The File That You Downloaded Named Proj08 Java Create A New File Named Proj08runner Java To Meet The Spe 1
Beginning With The File That You Downloaded Named Proj08 Java Create A New File Named Proj08runner Java To Meet The Spe 1 (5.72 KiB) Viewed 34 times
/*File Proj08.javaThe purpose of this assignment is to assess the student'sability to write a program dealing with Frame objects,MouseMoved events, MouseDragged events, and the DelegationEvent Model.**********************************************************/import java.awt.Frame;public class Proj08 { public static void main(String[] args){ Frame aFrame = new Proj08Runner(); }//end main}//end class Proj08
Display your name here X
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply