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

Advanced Java Practical 13

This document provides 3 coding exercises to demonstrate different adapter classes in Java. The first asks to debug code using a Frame window and outputs that closing the window destroys it. The second asks to write a program using the WindowAdapter class. The third asks to write a program using the MouseMotionAdapter class to only implement the mouseDragged method.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Advanced Java Practical 13

This document provides 3 coding exercises to demonstrate different adapter classes in Java. The first asks to debug code using a Frame window and outputs that closing the window destroys it. The second asks to write a program using the WindowAdapter class. The third asks to write a program using the MouseMotionAdapter class to only implement the mouseDragged method.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Program Code

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

Output:

Clicking on the close button of this window will


destroy the Frame window
Exercise

Q1. Write a program to demonstrate the use of WindowAdapter class

Source Code:
Output:

Q2. Write a program to demonstrate the use of anonymous inner class


Source Code-

Output:
Q3. Write a program using MouseMotionAdapter class to implement only one method mouseDragged().

Source Code:

Output:

You might also like