Multiple Choice
Which statements create a JLabel that holds the words "Happy birthday" and adds the greeting to a JFrame object named aGreeting ?
A) JLabel mygreeting = aFrame.add(mygreeting) ; new JLabel( "Happy Brithday") ;
B) JLabel mygreeting = new Frame( "Happy Brithday") ;
C) JLabel("Happy Brithday") ; aGreeting.add(Label) ;
D) JLabel mygreeting = new JLabel("Happy Birthday") ; aGreeting.add(mygreeting) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q63: Match each term with the correct statement
Q64: Write the statement to create a JLabel
Q65: How can you customize the appearance of
Q66: The ActionListener interface contains the _ method
Q67: Create the statements to construct two JFrame
Q69: Write the statement to provide a JTextField
Q70: The default behavior of a JFrame is
Q71: The _ responds to keyboard events.<br>A) KeyListener<br>B)
Q72: What class is the immediate parent of
Q73: The _ responds to keyboard focus events.<br>A)