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

Java Theory Assignment 4

Uploaded by

yashuop46
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)
5 views2 pages

Java Theory Assignment 4

Uploaded by

yashuop46
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

GLS UNIVERSITY

BCA (SEM-V)
SUBJECT: 0301502 Advance Java
ASSIGNMENT – 4 ( Swing, GUI Component & Layout
Manager)

A. Fill in the blanks


1. The ______ class act as a super class of JcheckBox and JradioButton classes.
2. The JradioButton must be placed in a ______ group.
3. ______ method of JCheckBox return true if checkbox is selected.
4. _____ method of JList sets the number of rows in the list to be displayed.
5. _____ method of JScrollBar returns the scroll bar’s maximum value.
6. _____ and ______ are the styled types component.
7. JPasswordField is a subclass of ________ .
8. _____ method of JTextArea return the number of lines in the text area.
9. ______ component is a combination of JList & JtextField.
10 ______ layout manager is used we we need to add components into a grid fo rows and
columns.

B. State True or False


1. JtoggleButton is a concrete subclass of Abstract Button. [T / F]
2. If the radio buttons are not grouped using ButtonGroup, then each radio button will be
behave exactly like JcheckBox. [T / F]
3. JcheckBox is a subclass of Jcomponent. [T / F]
4. The strings or images can be element of the list. [T / F]
5. The scroll bar are available in two orientations. [T / F]
6. JTextField is a simple type textfield. [T / F]
7. The setEchoChar(char c) method of JPasswordField sets the specified character as echo
character for this field. [T / F]
8. JTextArea component displays multiple lines of text in one color and with one font. [T / F]
9. JcomboBox has a model view structure. [T / F]
10.. Menu is created using JMenu and JmenuIteam. [T / F]

C. Explain in Detail
1. Explain each method of JToggleButton class.
2. Expalin JRadioButton class with sample code.
3. Exaplin each method JCheclBox class.
4. Explain each consturctor and method of JList class.
5. Write a short note on JScrollBar.
6. Explain JTextField class in detail with sample code.
7. Write a short note on JPasswordField class.
8. Explain each method of JTextArea class.
9. Explain JComboBox class with sample code.
10. How user can create Menu explain in detail.
11. Expain Border laout with sample code.
12. Expain Flow laout with sample code.
13. Expain Grid laout with sample code.
14 Expain Card laout with sample code.

Question set A and B are Compulsory for each student.


Question Set C need to attempt as follow:

Sr. No Group No. Questions


A01 To A10
1. B01 TO B10 1,7,12,5,13
C01 TO C10
A11 TO A20
2. B11 TO B20 2,8,11,6,14
C11 TO C20
A21 TO A30
3. B21 TO B30 3,9,10,7,5
C21 TO C30
A31 TO A40
4. B31 TO B40 4,10,9,8,6
C31 TO C40
A41 TO A50
5. B41 TO B50 5,11,8,9,13
C41 TO C50
A51 TO A60
6. B51 TO B60 2,8,10,13,5
C51 TO C60
A61 Onwards
7. B61 Onwards 6,12,7,10,14
C61 Onwards
A71 To A10
8. B71 TO B10 1,7,12,5,13
C71 TO C10
A81 TO A20
9. B81 TO B20 2,8,11,6,14
C81 TO C20
A91 TO A30
10. B91 TO B30 3,9,10,7,5
C91 TO C30

You might also like