|
Question 1.
(a) an application object
Question 2.
(b) JComponent
Question 3.
Object
Question 4.
(c) Label, Button,
TextArea
Question 5.
(b) lbl.setForeground
(0,0,255);
Question
6.
its uneditable
Question
7.
setEditable(false)
Question 8.
add
Question 9.
remove
Question 10.
(b) false
Question
11.
getContentPane().add (bt)
Question
12.
mainPanel.add(aCombo)
Question
13.
JButton cmd = new
JButton("Hi");
|
Question
1 4.
JCheckBox
someCombo = new JCheckBox ("Select Me");
Question
1 5.
(c) JButton but1 = new
JButton ("hi", new ImageIcon ("sun.gif"));
Question
1
6.
(b) false
Question
1
7.
(b) true
Question
1 8.
ButtonGroup
Question
1 9.
aText.setFont(new
Font("Arial", Font.BOLD, 14));
Question
20.
(a) A TextArea can
handle multiple lines of text but a TextField cannot
Question
21.
(a) JList and (c)
JTextArea
Question
22.
setText
Question 3.
setEnabled(false)
Question
24.
setVisible(false)
Question
25.
anotherLabel.setBackground
(Color.yellow);
|
|