Choose the most correct answer to all the following questions.
Read them carefully to ensure you understand the question.
A Jframe is considered a root container in a Java GUI application.
True
False
A Jlabel may contain text, a graphic, or both.
True
False
Java GUI application are not generally considered to be event driven.
True
False
In order to display a Java Component, it must be part os a containment hierarchy.
True
False
What method is used to assigne a new Layout Manager to a Container?
setLayout()
getLayout()
addLayout()
addLayout(container name)
List, in order, the two arguments that are required to set the size of a container.
width and length
rows and columns
height and width
none of the above
What geometric shape represents all visual elements of a GUI application?
a rectangle
a square
a cube
an open cube
How many lines of text may be contained in a Jlabel?
1
2
an infinite amount
as many as is set
List the objects of the inheritance hierarchy for a JFrame object, in order (least derived to most derived); do not include JFrame. (in alpha order: Component, Container, Frame, Object, Window)
Explain the two required steps (actions) to implement Event Handling.
Event handler component must register a listener event.
Listener event must implement required interface.
Event source component must register a listener object.
Listener object must implement required interface or extend required adapter class.
Listener object must extend required adapter class.
Event handler must register a listener object.
What is an adapter class? (choose the most correct answer)
A listener interface inherites all methods and fields of an adapter class.
An adapter class extends all methods in an event handler.
An adapter class extends all methods in a listener interface.
An adapter class defines all abstract methods in a listener interface.