Question: 1. Which Swing layout manager uses a grid, but allows selected grid locations to span multiple rows or columns? I GridBagLayout II BorderLayout III GridLayout

1.

Which Swing layout manager uses a grid, but allows selected grid locations to span multiple rows or columns?

I GridBagLayout

II BorderLayout

III GridLayout

a.Only II
b.Only I
c.I and III
d.Only III

2.

What is the best first step in picking the layout managers for a set of nested panels?

a.use multiple panels with FlowLayout managers
b.construct a set of JPanel objects
c.use a single panel with a GridBagLayout manager
d.make a sketch of the layout

3.

In an online job application, applicants have to submit a cover letter by typing it into a given text box. Which Swing component would be most appropriate for this text box?

a.JTextComponent
b.JTextField
c.JTextArea
d.JLabel

4.

Which of the following would be an appropriate use of radio buttons when ordering a pizza?

a.Customer's name
b.Pick-up/Delivery
c.Types of sides
d.Topping choices

5.

A complex GUI can be created with a set of nested containers. What should determine the components that go into a single container?

a.the adjacency of the components
b.the size of the components
c.the names of the components
d.the type of components

6.

In Swing, what is the general purpose container normally used at each level of a hierarchy of components and other containers, with layouts at each level?

a.JMenu
b.JPanel
c.Containers aren't normally nested
d.JFrame

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!