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.

Computer Science & Information Technology

You might also like to view...

Photographs in .gif format can be uploaded to your SharePoint profile page

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is used to ensure information integrity?

a. Auditing b. Digital signatures c. Backups d. Passwords

Computer Science & Information Technology

Besides Excel, which program is often used to view the contents of a CSV file?

A. Publisher B. Notepad C. Word D. Outlook

Computer Science & Information Technology

The ____ command is used to fine tune the X server's video modes.

A. startx B. xvidtune C. SuperProbe D. vncserver

Computer Science & Information Technology