Java Programs
Java Programs
Thread
54 Multi Threading
55 Use of setPriority() for a thread
56 Use of Thread.sleep()
57 Use of Runnable interface
Applet
Applet(Use of init(), start(), paint(), stop(),
58 destroy())
Display Hello inside a rectangle on one
59
Applet
60 Design a face on one Applet
61 Move a ball from left to right on one Applet
Rotate a line about one of its end points on
62 one Applet
63 Rotate a line about its centre on one Applet
64 Design a clock on one Applet
Applet with Thread(Design of Banner
65 "Happy Holi")
Event Handling
Display Hello at every mouse click on one
66 Applet
Keep all the * generated for each mouse
67 click on an Applet
Draw a line between mouse press and mouse
68 release
Draw a rectangle between mouse press and
69 mouse release
Back ground color change on mouse enter
70 and exit in one Applet
71 Draw a line during mouse move
72 Draw a line during mouse drag
Componenet Class Hierarchy
73 Use of Frame
On one frame, take 4 buttons namely, Red,
Green, Blue and Exit. On clicking the
74 buttons different events will be fired
On one frame, perform addition of 2
75 numbers by using label, text field and Button
76 Design a Calculator
77 Checkbox
78 Radio Button
79 Choice
On a frame, rotating a line about one of its
80 end points
Delegation Event Model
81 Adaptor class
Stream
82 Reading characeters
File
Program to display files and directories in a
83 folder
84 Copying characters from one file to another
85 Copying bytes from one file to another
86 Reading and writing primitive data types
87 Creating your own Exception
88 Synchronization of Thread
Swing in Java
89 Swing Example using JFrmae
Swing Example using Jfrmae and JButton
90 assocaied with constructor
Swing Example using Jfrmae and JButton
91 assocaied with inheritannce
Swing Example using Jfrmae, JTextField,
92 JLabel and JButton to show country name if
93 Swing program using SwingUtilities
String
94 String Example
StringBuffer
StringBuffer Example to explain append()
95 method
StringBuffer Example to explain insert()
96 method
StringBuffer Example to explain replace()
97 method