Assignment of CH-3 (GUI Programming-A Review) Class-XII Informatics Practices
Assignment of CH-3 (GUI Programming-A Review) Class-XII Informatics Practices
Assignment of CH-3 (GUI Programming-A Review) Class-XII Informatics Practices
Class-XII
Informatics Practices
2. D/f b/w
a. Parent controls and Child controls.
Parent Controls: They act as a background for other controls. For
example-Frame. When we delete a parent control, all its child controls
get deleted. When we move a parent control all its child controls also
move along with it. the class whose properties are inherited is known as
parent class (base class, superclass class).
Child Controls: controls placed inside a container control are called child
controls. For example-Text Field, Label, Button etc. The class which
inherits the properties of other is known as child class (derived class, sub
class)
Radio Buttons:
A radio button is one of a group of controls representing mutually-
exclusive choices. A radio button is typically represented as a round
control to distinguish from the square checkbox control. JRadioButton is
a group of buttons in which only one button can be selected at a time .
f. = & ==
= is an Assignment Operator it is used to assign the value of variable or
expression, while ==is an Equal to Operator and it is a relation operator
used for comparison (to compare value of both left and right side
operands).
g. / & %
Both are arithmetic operators. ‘%’ -> Modulus operator that returns the
remainder in division
whereas ‘/’ -> Divide operator that return quotient.