Answer the following statements true (T) or false (F)

1. In the following code the setPreferredSize method sets the size of the text, "Have a good day".
```
label = new Jlabel("Have a good day", SwingConstants.CENTER);
label.setPreferredSize(new Dimension(400,200));
```
2. When using a slider, by default, tick marks are not displayed, and setting their spacing does not cause them to be displayed.
3.When a JList component is added to a JScrollPane object, a border will automatically appear around the list.
4.You can create a label with an image, or with both an image and text.


1. FALSE
2. TRUE
3. TRUE
4. TRUE

Computer Science & Information Technology

You might also like to view...

In code, you can determine the number of images stored in an Image List control by getting the value of the control's ____________ property.

a. Image.List.Max b. Size.Get c. Images.Count d. Get Last Image

Computer Science & Information Technology

To store files such as Word documents or digital photos, format the field with the Attachment data type

Indicate whether the statement is true or false

Computer Science & Information Technology

Match the following terms to their meanings:

I. The path to the selected file or folder is displayed here A. TIFF II. File type used for very high level of visual quality B. tag III. Descriptive pieces of information about a file C. Address Bar IV. A custom file property D. Documents folder V. Default storage location for files used by many programs E. Properties

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. Indentation is used in pseudocode to improve readability. 2. A nested IFTHENELSE pattern cannot contain a null ELSE. 3. The decision point in an IFTHENELSE statement is called an unconditional branch. 4. Pseudocode may be a more suitable tool than flow charting when working on complex problems. 5. In a nested IFTHENELSE pattern, it is probable that many of the tests will be skipped.

Computer Science & Information Technology