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...

A data entry form is usually a(n) ____________________ form that displays data from the fields in its record source.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What type of encryption is used by the Encrypting File System feature in Windows?

A. symmetric B. asymmetric C. hashing D. both symmetric and asymmetric

Computer Science & Information Technology