> For the complete documentation index, see [llms.txt](https://suyashs-organization-3.gitbook.io/csitlabs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://suyashs-organization-3.gitbook.io/csitlabs/7th_semester/advanced-java-programming/lab-codes/lab/src/main/java/practical3.md).

# Practical 3

1. Write a program to handle

* action event (using radio button and normal button). [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/ActionEventDemo.java)
* item event (by using check box). [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/ItemEventDemo.java)
* mouse event (both adapter and delegation method). [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/MouseEventDemo.java)
* key event (both adapter and delegation method). [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/KeyEventDemo.java)
* list selection event. [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/ListSelectionEventDemo.java)
* Focus event. [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/FocusEventDemo.java)
* Window event (both adapter and delegation method). [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/WindowEventDemo.java)

2. Write a program to find the sum and difference of two number. Use two textfield to take input and another one text field to display result. Display sum of two number if mouse is clicked and display difference if mouse is released. [Source Code](https://github.com/sthsuyash/CSIT_Labs/blob/main/7th_Semester/Advanced%20Java%20Programming/Lab%20Codes/Lab/src/main/java/Practical3/SumDifference.java)
