Question: Modify the AfricanCountries program in Figure 18.10 in Section 18.5 to produce an initial display that looks like this: Create the scene with a width

Modify the AfricanCountries program in Figure 18.10 in Section 18.5 to produce an initial display that looks like this:

African Countries Western Sahara Tunisia - Central African Republic South Africa X Somalia

Create the scene with a width of 400 and a height of 200. Embed a StackPane in each BorderPane compartment, and put the button in those embedded StackPanes. This automatically centers the buttons in their respective compartments. Specify all other styling in a CSS style sheet. On this style sheet, supply three style classes—root, child, and center. Register the center style class (which specifies the center compartment’s green background) with the center compartment’s StackPane, using a statement like this: pane.getCenter().getStyleClass().add("center");

Figure 18.10:

/************************************************************** * African Countries.java * Dean & Dean * *

African Countries Western Sahara Tunisia - Central African Republic South Africa X Somalia

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To modify the AfricanCountries program in accordance with the provided instructions youll need to make several adjustments to the code and create a CS... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction To Programming With Java A Problem Solving Approach Questions!