In the AfricanCountries program in Figure 18.10, suppose there is no setMaxSize method call. What would the
Question:
In the AfricanCountries program in Figure 18.10, suppose there is no setMaxSize method call. What would the resulting window look like?
Figure 18.10:
Transcribed Image Text:
/************************************************************** * African Countries.java * Dean & Dean * * This produces centered component in each Border Pane area. **************************************************************/ import javafx. application. Application; import javafx. stage.Stage; import javafx.scene.*; import import javafx.scene.control.Button; import javafx. geometry.*; javafx.scene.layout. Border Pane; public void start (Stage stage) ( public class African Countries extends Application ( // Scene, Node createContents (pane); { Border Pane pane = new Border Pane(); Scene scene = new Scene (pane, 320, 160); stage.setScene (scene); stage.show(); } // end start // Pos, Insets. stage.setTitle("African Countries"); //*********************************************************** private void createContents (Border Pane pane) pane.setCenter (new Button ("Central African Republic")); pane.set Top (new Button("Tunisia")); pane.setRight(new Button("Somalia")); pane.setBottom (new Button ("South Africa")); pane.setLeft (new Button ("Western Sahara")); pane.setPadding(new Insets (6)); for (Node child pane.getChildren()) { } } // end createContents 3 // end class African Countries. makes button's label span two lines. Generates padding Inside pane's perimeter. ((Button) child).setMaxSize (Double.MAX_VALUE, Double.MAX_VALUE); Border Pane.setMargin(child, new Insets (2));
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (1 review)
The image provided shows source code for a JavaFX application named AfricanCountriesjava which arran...View the full answer
Answered By
Utsab mitra
I have the expertise to deliver these subjects to college and higher-level students. The services would involve only solving assignments, homework help, and others.
I have experience in delivering these subjects for the last 6 years on a freelancing basis in different companies around the globe. I am CMA certified and CGMA UK. I have professional experience of 18 years in the industry involved in the manufacturing company and IT implementation experience of over 12 years.
I have delivered this help to students effortlessly, which is essential to give the students a good grade in their studies.
3.50+
2+ Reviews
10+ Question Solved
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Question Posted:
Students also viewed these Computer science questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
What can you say about the value of stock with constant dividend growth where the growth rate is larger than the discount rate?
-
For what number does the principal square root exceed eight times the number by the largest amount?
-
Design a generalizationspecialization hierarchy for a motor-vehicle sales company. The company sells motorcycles, passenger cars, vans, and buses. Justify your placement of attributes at each level...
-
Lori Cook, manager of the Winter Park Hotel, is considering how to restructure the front desk to reach an optimum level of staff efficiency and guest service. At present, the hotel has five clerks on...
-
E ALU ATIN G P E RS O N AL AU TO M O B I LE P O LI CY FE ATU RE S. Tucker Carson of Pittsburgh, Pennsylvania is a single, 40-year-old loan officer at a large regional bank; he has a 16-yearold son....
-
The Kohler Chemical Manufacturing Company produces two primary chemical products to be used as base ingredients for a variety of products. The 2016 budget for the two products (in thousands) was as...
-
Mike, single, age 31, reports the following items for 2022: Salary $50,000 Nonbusiness bad debt (6,000) Casualty Asset A (personal use property held for two years)gain 3,000 Dividends 2,000 Interest...
-
Assume you have this program: a) Modify the above code to produce this output: b) Modify the above code to produce this output: For both (a) and (b), call setAlignment(component, Pos.CENTER). import...
-
In a BorderPane, what happens if the right area is empty? Said another way, which area(s), if any, expand(s) if the right area is empty?
-
What are the common elements of the three practical approaches to ethical decision making that are briefly outlined in this chapter?
-
2. Getting ready for Logarithms and Calculus! a. Fill in the chart and graph the function (I advise practicing on your scientific calculator and desmos. X f(x) = Inx 0 0.5 1 e 10...
-
JoJo Co. had the following balances and information for October. Beg. finished goods inventory = $30 Beg. work in process inventory = $5 Beg. raw materials inventory = $15 End. finished goods...
-
Subway sales have been declining since 2014. In the US, Subway has closed a number of stores due to over-expansion, outdated operations, and uninspiring menus. In Canada, Subway took a different...
-
Harvey Auto Parts purchased a new crane on September 1 for $35,000, paying $10,000 cash and signing a 7%, 12-month note for the remaining balance, interest to be paid at maturity. The crane is...
-
e4(k+1) Find the sum of the series. k = 1 8
-
Use Theorem 1 to determine where each function in Problem is continuous. Express the answer in interval notation. 3x2 + 2
-
SBS Company have received a contract to supply its product to a Health Care Service Hospital. The sales involve supplying 1,250 units every quarter, the sales price is RM 85 per unit. The Client...
-
Propose a mechanism for deciding when to report an RTP packet as lost. How does your mechanism compare with the TCP adaptive retransmission mechanisms?
-
For each of the following enthymematic arguments: a. Formulate the plausible premise or conclusion, if any, that is missing but understood. b. Write the argument in standard form, including the...
-
Construct a table from the data shown on the graph below. Which is the dependent variable and which the independent variable? Summarize the data in equationform. 100 e 80 60 40 20 0 2 46810 Study...
-
Production numbers for 2 shifts are shown. The shift supervisor of Shift 2 insists to the production manager that her operators are more productive than the ones on Shift 1. Using a confidence level...
-
In a class, the scores that students got are as shown. What are the 25, 50, 75 and 100th percentiles for the data? 84 84 98 80 89 83 85 56 85 84 84 74 84 81 83 80 45 86 67 79 81 78 76 85 83 77 86 83...
-
Number of points made by Teams A and B are shown. Which statement is true based on running the F-Test Two-Sample for Variances in the Data Analysis pack in Excel? Use a confidence level of 10% to...
Study smarter with the SolutionInn App