Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
28 views

Advanced Java Practical 11

This document provides 3 programming questions and code snippets. Question 1 asks to debug code that prints "Hello World" and outputs the text. Question 2 asks to write a program that counts mouse clicks in a frame window. Question 3 asks to write a program demonstrating the mouseDragged and mouseMoved methods of the MouseMotionListener interface.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Advanced Java Practical 11

This document provides 3 programming questions and code snippets. Question 1 asks to debug code that prints "Hello World" and outputs the text. Question 2 asks to write a program that counts mouse clicks in a frame window. Question 3 asks to write a program demonstrating the mouseDragged and mouseMoved methods of the MouseMotionListener interface.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Program Code

Q1. Debug the following code and write the output of following code.
Source Code:

Output:
Q2. Write a program to count the number of clicks performed by the user in a Frame window

Source Code:

Output:
Q3. Write a program to demonstrate the use of mouseDragged and mouseMoved method of
MouseMotionListener

Source Code-

Output:

You might also like