Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(TCOs 1, 4, and 6) What method is used to create a line separator between menu i

ID: 2080988 • Letter: #

Question

(TCOs 1, 4, and 6) What method is used to create a line separator between menu items? (Points : 3)

A addLine()

B addBar()

C addSeparator()

D addBreak()

A provides a bounding box used for the layout of JTextField components.
B is used to group multiple JTextField components together.
C is a control used to display multiple lines of text.
D provides a scrollbar for a JTextField component.

A Event source
B Event action
C Event object
D Event listener

(TCOs 1, 4, and 6) A JTextArea control (Points : 3)

Explanation / Answer

1

In Java applications add separator method is used to create line separator between menu items.

Thus the correct option is (C) addSeparator

4

In Java GUI application JTextArea control is used to display the multiple lines of text.

Thus the correct option is (C) is a control used to display multiple lines of text.

6

Event Source is not part of the event mechanism in java.

Thus the correct option is (C) Event source