Practical No. 1: Write A Program To Demonstrate The Use of AWT Components
Practical No. 1: Write A Program To Demonstrate The Use of AWT Components
Using applet window, design following AWT components using add() method of
components class. Following are some AWT components
To Create TextArea
TextArea ta=new TextArea(String str,int nooflines)
To create RadioButton(CheckBoxGroup):
CheckBox cb1, cb2;
CheckBoxGroup cbg;
Cb1=new CheckBox(“Male”,cbg,true);
Cb2=new CheckBox(“Female”,cbg,false);
Sr. Remarks
Name of Resource Broad Specification Quantity
No. (If any)
Computer (i3-i5
1 Computer System
preferable RAM > 2GB
As per
For All
2 Operating System Windows/Linux Batch
Experiments
Size
Development
3 JDK 1.5 Onwards
Software