0% found this document useful (0 votes)
4 views1 page

Java Threading and Event Handling Guide

The document outlines various Java programming concepts including thread management, event handling, and applet creation. It covers topics such as thread priority, different methods to create threads, the Java thread life cycle, and various layout managers. Additionally, it includes example programs for handling mouse and keyboard events, drawing shapes, and creating graphical user interfaces with Swing.
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)
4 views1 page

Java Threading and Event Handling Guide

The document outlines various Java programming concepts including thread management, event handling, and applet creation. It covers topics such as thread priority, different methods to create threads, the Java thread life cycle, and various layout managers. Additionally, it includes example programs for handling mouse and keyboard events, drawing shapes, and creating graphical user interfaces with Swing.
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

1. Thread priority and default priority values and methods to change them.

2. Different ways of creating threads in java


3. Program to create two threads, so one thread will print even numbers between 1 to 10 whereas
other will print odd numbers between 11 to 20.
4. Java Thread Life Cycle
5. Layout manager any two types of Layout managers.

6. Adapter class and example program.

7. Program to create a frame window that responds to mouse clicks.

8. Delegation event model.

9. Action event with an example.

10. Program to create a frame window that responds to keystrokes.

11. Event handling with examples.

12. Java program to demonstrate the handling of Keyboard events.

13. Methods under WindowListener Interface.

14. Applets to draw the Cone, Cube and Cylinder shapes.

15. Methods under Action Interface

16. Various components of Swing

17. The Following attributes of applet:


(i) Codebase (ii) Alt (iii) Width (iv) Code

18. Java program to demonstrate the handling of Mouse events.

19. The following methods of applet class:


(i) drawRect() (ii) drawPolygon()
(ii) drawArc() (iv) drawRoundRect()

20. An applet to accept Account No and balance in form of parameter and print message “low
balance” if the balance is less than 500.

21. Swing and the Component Hierarchy of Swings.

22. How parameters can be passed to an applet

23. Program to draw a bar chart for plotting students passing percentage in last 5 years.

You might also like