Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1- Each of the following questions asks you to collect some type of data or provide some type of operation to the user. For each

1- Each of the following questions asks you to collect some type of data or provide some type of operation to the user. For each question, select the most appropriate widget to use. You should select each answer from the following list of widgets:

slider

radio boxes

check boxes

command buttons

menu/list

text field

________________ You want the user to enter a social security number.

________________ You want the user to select whethery they want to book a hotel, car, or airline and they are only allowed to select one of the three choices.

________________ You want the user to select the square footage of their house. The choices are in increments of 100, and range from 500-5000.

________________ You want the user to select the state in which they live.

________________ You want to display four icons representing the cut, copy, paste, and delete operations (i.e., selecting the icon causes the associated operation to be performed).

2- Each of the following questions will ask you to collect some type of data or provide some type of operation to the user. For each question, select the most appropriate widget to use for that question based on the material you have been presented in this course. You should select each answer from the following list of widgets:

 slider radio buttons text field menu/list check boxes command buttons 

________________ You want the user to enter their checking account number, which is an 8 digit number.

________________ You want the user to enter the month for which they want to travel and screen real estate is at a premium.

________________ You want the user to select from among possible toppings for a pizza. The user is allowed to select multiple toppings and you want the user to be able to easily see all the toppings at once. Screen real estate is abundant.

________________ You want the user to assign a performance rating of Excellent, Good, Average, Mediocre, and Failing

________________ You want to display a pallette of text justification icons, with the options being left justify, center, and right justify.

3- Choose the best answer from the following list of layout managers:

Box Flow Grid Group GridBag Border Spring None 

____________ I want to equally space a group of objects horizontally across the window. If the window is re-sized, I want the objects to continual to be equally spaced across the window.

____________ I want to design a new type of browser window that has toolbars on both the left and right sides of the window and I want the content displayed in the center of the window.

____________ I want to display a set of equal-sized color chips in a color pallette using a tabular format.

____________ I want to display a set of command buttons vertically at their natural size.

____________ I want to design a dialog box with a number of different groups of widgets. What should I use as the top-level layout manager if I am designing the dialog box programmatically (i.e., I am not using an IDE).

4- Which Java layout manager is the best choice for each of the following situations. Please limit yourself to the following layout managers:

Border Box Grid GridBag Flow Group None

______________ You want to lay out a vertical stack of labeled text fields. The labels should be left-aligned with each other and vertically centered with the text fields. The text fields should be left-aligned with each other. If the window is re-sized, the text fields should get all the additional horizontal space.

______________ You want to use absolute positioning for each widget and you do not want the widget's location or size to vary if the window is resized.

______________ You want to horizontally lay out a set of text justification icons using their natural size, no matter how big the window gets

______________ You want to create a top-level layout with an application window in the center and tool bars arrayed around the boundaries of the application window.

______________ You want to use an IDE to lay out a set of widgets and you want the widget's size to vary in a reasonable way when the window is resized.

______________ You want a horizontal set of command buttons whose spacing should be controlled with rigid areas and glue objects

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

Question What are the requirements for a SIMPLE 401(k) plan?

Answered: 1 week ago