Question: Write an applet that initially displays Computer Programming II in the center of a window. The sentence should follow your mouse cursor when you move

Write an applet that initially displays "Computer Programming II" in the center of a window. The sentence should follow your mouse cursor when you move the cursor inside the window Your starting coordinate to print the sentence should be (50, 50). Try out your applet. If time permits, create a web page on which you can display your applet. Submit your java file (and html file if you have) Your starting applet should display similar to following figure: Applet Viewer: AliApplet.class Applet Computer Programming II Applet started Hints: See the example DrawBoxes java from the book. You do not need to create object of MouseListener class, hence you do not need to implement MouseListener class Yoll only ?1 (YYI ob ect of Mous?:Moi : :? on.isi :enor classa or tus a liatimi, y u ICYY mouseMoved method which get the mouse pointer's X and Y coordinates; and force the paint method to execute. You can keep mouseDragged method empty. Write an applet that initially displays "Computer Programming II" in the center of a window. The sentence should follow your mouse cursor when you move the cursor inside the window Your starting coordinate to print the sentence should be (50, 50). Try out your applet. If time permits, create a web page on which you can display your applet. Submit your java file (and html file if you have) Your starting applet should display similar to following figure: Applet Viewer: AliApplet.class Applet Computer Programming II Applet started Hints: See the example DrawBoxes java from the book. You do not need to create object of MouseListener class, hence you do not need to implement MouseListener class Yoll only ?1 (YYI ob ect of Mous?:Moi : :? on.isi :enor classa or tus a liatimi, y u ICYY mouseMoved method which get the mouse pointer's X and Y coordinates; and force the paint method to execute. You can keep mouseDragged method empty
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
