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...
The________is the process that invokes os.fork.
a) child process. b) parent process. c) master process. d) None of the above.
Answer the following questions true (T) or false (F)
1. True/False: Is the following statement true or false:“G” != “G”. 2. True/False:IfMyName = “Liz” and YourName = “Stewart” then is the following statement true or false? (MyName < YourName) OR (MyName >= YourName) 3. True/False: If a condition in a post-test loop can never be met, the loop is an infinite loop.