Exam 17: Swing I

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Write a Java statement to add a title to the window in the GUI created in number 1 above that says "First Window".

(Short Answer)
4.8/5
(45)

Events and listeners for menu items are handled in exactly the same way as they are for buttons.

(True/False)
4.8/5
(35)

Explain the model-view-controller pattern when applied to a typical GUI.

(Essay)
4.9/5
(37)

When using the BorderLayout manager you must specify all five regions.

(True/False)
4.7/5
(40)

The _____________ manager is the simplest layout manager.It arranges components one after the other,going from left to right,in the order in which you add them.

(Multiple Choice)
4.9/5
(43)

A _____________ is an object that is a simple container class that groups other objects.

(Multiple Choice)
4.7/5
(41)

A button component should have a registered _____________ associated with it.

(Multiple Choice)
4.9/5
(32)

Write Java statements to add menu items named "Circle","Square",and "Rectangle" to the menu created in number 7 above.

(Essay)
4.9/5
(42)

Create a Java GUI that allows the user to enter a desired user name and password.Provide a button,when clicked,informs the user that their account was successfully created.Include labels as appropriate.

(Essay)
4.9/5
(45)

In a Swing program,throwing an uncaught exception may leave the program in an unpredictable state.

(True/False)
4.8/5
(34)

A JMenu can not be a menu item in another menu.

(True/False)
4.8/5
(40)

In event-driven programming,your program determines the order in which things happen.

(True/False)
4.8/5
(35)

What is an action listener? What is an action event?

(Essay)
4.8/5
(39)

Write a Java statement to create a menu with the title "Drawing Template".

(Short Answer)
4.9/5
(33)

What are three common objects you must deal with when using a Swing container class?

(Essay)
4.7/5
(30)

A _____________ allows multiple lines of text to be displayed.

(Multiple Choice)
4.8/5
(34)

The getText()method of a JTextField object returns an object of type:

(Multiple Choice)
4.9/5
(35)
Showing 21 - 37 of 37
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)