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...
-
What is the difference between a perpetual inventory and a physical inventory? If a company maintains a perpetual inventory, should its physical inventory at any date be equal to the amount indicated...
-
Using \(q_{0.05}=4.339\) for the Tukey HSD method, compare the treatments in Exercise 12.45. Data From Exercise 12.45 12.45 Given the following data from a randomized block design, Blocks 1 234...
-
To complete the communication assignment, each student must read and consider the tax issues in the following Communication Assignment Case and then submit a written report that summarizes, explains...
-
What are the key challenges in using advanced absorbents, like metal-organic frameworks (MOFs) or zeolites, in gas-phase absorption processes? Discuss their impact on capacity, selectivity, and...
-
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?
-
On January 1, 2020, Christel Madan Corporation had inventory of $50,000. At December 31, 2020, Christel Madan had the following account balances. Freight-in...
-
You can think of a financial plan as a "financial road map to guide you through life." Develop a visual display that illustrates this concept and the five steps of the financial planning process. Try...
-
Watch a short video on the Mint.com Web site on how to set up a Mint account. Explore the Web site to determine who funds the program. Read one or more of the personal finance blogs and write a...
-
Suppose that the FOMC decides to lower its target for the federal funds rate. How can it use open market operations to accomplish this goal? How can the FOMC use open market operations to raise its...
-
Prepare yourself for an audit by collecting all relevant tax records from the last year. Include all pay stubs that verify deductions, credit card bills and their matching receipts that verify...
-
An article in the Economist magazine observed: Creating more inflation is harder than it sounds. . . . It requires aggregate demand to return to, and exceed, potential output. Use an ADAS graph to...
-
What is the value of producing a requirements definition and having the project sponsor and key users review and approve it?
-
Determine whether the lines are parallel, perpendicular, or neither. 2x + 3y = -12, 2y - 3x = 8
-
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...
-
Considering the concepts of algorithms, answer the following questions: a) Write pseudocode for a program that calculates and prints the average of marks saved into an Array of 6 elements? [15 Marks]...
-
On 2.3.2016 L and B Ltd. issued 635, 9% debentures of Rs 500 each. Pass necessary journal entries for the issue of debentures in the following situations: (a) When debentures were issued at 5%...
-
Capital balances in the MEM partnership are Mary, Capital $60,000; Ellen, Capital $50,000; and Mills, Capital $40,000, and income ratios are 5:3:2, respectively. The MEMO partnership is formed by...
Study smarter with the SolutionInn App