What visual effect would result by changing the horizontal and vertical gaps on the border layout used in the LayoutDemo program? Make the change to test your answer.
What will be an ideal response?
The panel used to display the buttons has a green background, but no green is visible in the display. By default, there are no horizontal or vertical gaps between the areas of a border layout. These gaps can be set with an overloaded constructor or with explicit methods of the BorderLayout class. If the gaps are provided, the underlying (green) panel shows through.
You might also like to view...
What of the following is missing in the accompanying figure?
A. Compose message panel B. Ribbon bar C. Inbox list D. Reading panel
Which of the following statements is false?
a. You can set a Button’s text by double clicking it, or by selecting the Button, then setting its Text property in the Inspector window’s Properties section. b. A GridPane column’s contents are left-aligned by default. c. Setting a node’s Pref Width property of a GridPane column to USE_COMPUTED_SIZE indicates that the width should be based on the widest child. d. All of the above are true.
To delete a note, select the note reference mark in the footnote text by dragging through the note reference mark, and then click the Cut button on the Home tab.
Answer the following statement true (T) or false (F)
A cell with a comment is indicated by ________
A) bolding the cell text B) a red cell background C) italicizing the cell text D) a red triangle in the top-right corner of the cell