0% found this document useful (0 votes)
46 views2 pages

Practical No. 1: Write A Program To Demonstrate The Use of AWT Components

This document provides instructions for Practical No. 1 of the Advanced Java Programming course. The goal is to write a program demonstrating the use of AWT components like text fields, text areas, buttons, checkboxes, and radio buttons. Students will design a GUI application or applet using these components. They are expected to understand different AWT components and be able to design a form using required components. The document outlines the relevant program outcomes, competencies, course outcomes, and theoretical background needed to complete the practical. It also lists the required and additional resources and provides sample program codes for students to implement.

Uploaded by

Om Kawate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views2 pages

Practical No. 1: Write A Program To Demonstrate The Use of AWT Components

This document provides instructions for Practical No. 1 of the Advanced Java Programming course. The goal is to write a program demonstrating the use of AWT components like text fields, text areas, buttons, checkboxes, and radio buttons. Students will design a GUI application or applet using these components. They are expected to understand different AWT components and be able to design a form using required components. The document outlines the relevant program outcomes, competencies, course outcomes, and theoretical background needed to complete the practical. It also lists the required and additional resources and provides sample program codes for students to implement.

Uploaded by

Om Kawate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Advanced Java Programming (22517)

Practical No. 1: Write a program to demonstrate the use of


AWT components.
I. Practical Significance:
Text Field, Text Area, Button, Checkbox, Radio Buttons(Check Box Group) are the
AWT components. Used to design the GUI in java. A component is object having
representation that can be displayed on the screen to interact with the user.

II. Relevant Program Outcomes (POs)


 Basic knowledge: Apply knowledge of basic mathematics, sciences and basic
engineering to solve the computer group related problems.
 Discipline knowledge: Apply Computer Programming knowledge to solve the
computer group related problems.
 Experiments and practice: Plan to perform experiments and practices to use the
results to solve the computer group related problems.
 Engineering tools: Apply relevant Computer programming / technologies and
tools with an understanding of the limitations.
 Individual and Team work: Function effectively as a leader and team member in
diverse/multidisciplinary teams.
 Communication: Communicate effectively in oral and written form.

III. Competency and Practical skills


To develop standalone applications
The practical is expected to develop the following skills:
1. Able to design form using required AWT components
2. Able to understand the different Components available in AWT

IV. Relevant Course Outcome(s)


Develop programs using GUI Framework AWT.

V. Practical Outcome (PrOs)


Write a program to demonstrate the use of AWT components.

VI. Relevant Affective domain related Outcome(s)


1. Follow precautionary measures.
2. Follow naming conventions.
3. Follow ethical practices.

VII. Minimum Theoretical Background


AWT is a java programming language class library. Components are visible objects
that can interact with the user. Containers (Frame, Panel, Applet) are used to hold
components using in a specific layout.

Using applet window, design following AWT components using add() method of
components class. Following are some AWT components

1. Label: Creates a label that displays a string.


2. TextField Creates and accepts a single-line text from user.
3. TextArea Creates and accepts multiple line text from user.

Maharashtra state Board of Technical Education 1


Advanced Java Programming (22517)

4. Button creates a push button.


5. Checkbox Creates a check box which is used to select multiple options.
6. CheckboxGroup creates a group of checkbox to act as radio button.

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);

VIII. Resources required

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

IX. Resources used (Additional)

Sr. Remarks (If


Name of Resource Broad Specification Quantity
No. any)
1 Computer System
2 Operating System
Development
3
Software

X. Program Code: Teacher must assign a separate program statement to group of


3-4 students.
1. Design an applet/application to demonstrate the use of Radio Button and
Checkbox.
2. Design an applet/application to create form using Text Field, Text Area, Button
and Label.

XI. Result (Output of Code):


...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................

Maharashtra state Board of Technical Education 2

You might also like