Create Software Components 

Using Java Level 2

 

 

Course Info

Scheme

Resources

Tutorials

Java Demos

Utilities

Links


 

    Quiz 9 - Answers

Components

 

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

 

        

 

  Site Home 

Java Home   

  Forum  

Course Info

Welcome

Overview

Assessment

Qualification

Scheme of Work

Assignments

Resources

Information

Blackboard

Learning Center

Web Materials

Reading

Java Demos

Utilities

Links

Lecture Materials

Tutorials & Notes

Exercises

Activities

Quizzes

 

Site Home

Top

Unit Home

ADR 2002