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...
-
Alice is a single mother, 37 years old, and has two qualifying children, ages 3 and 6. In 2017, she receives $3,600 alimony and earns $18,000 in wages resulting in $21,600 of AGI. Is Alice eligible...
-
The initial value problem \[\frac{d y}{d x}=\frac{y^{2}+x y}{x^{2}}, \quad y(1)=1\] does not fall into the class of problems considered in this chapter. However, if one substitutes \(y(x)=x z(x)\)...
-
A Brooks Clinic is considering investing in new heart-monitoring equipment. It has two options. Option A would have an initial lower cost but would require a significant expenditure for rebuilding...
-
The following data relates to XYZ Company's budgeted amounts for next year. Budgeted Data: Department 1 Department 2 Overhead costs $ 498,000 $ 784,000 Direct labor hours 72,000 DLH 92,000 DLH...
-
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?
-
A tennis ball is a flexible, elastic object. If a person of average size stands on a tennis ball, the ball will compress to about half its original (non-compressed) diameter. What is the approximate...
-
Distinguish between general and application controls and indicate the relative importance of each category.
-
What are the functions in executing and recording these two classes of transactions and custody of related assets?
-
What sampling units may be used in attribute sampling of cash receipts transactions?
-
Contrast the purposes of (a) the preliminary review, (b) the preliminary review assessment, (c) completion of the review, and (d) the completion of review assessment.
-
a. What is lapping? b. What internal control principles will prevent or detect this irregularity? c. What test of transactions may detect lapping?
-
Your rate of return expectations for the common stock of Gray Cloud Company during the next year are: GRAY CLOUD CO. Possible Rate of Return Probability 0.10 ............0.25 0.00 ............0.15...
-
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...
-
Under the economies of scale principle of transportation, the cost per unit increases as the size of shipment increases. True False
-
Which of the alternatives has the lowest standard deviation? A. 1 B. 2 C. 3 D. All three alternatives have the same standard deviation.
-
Online presentations require complete familiarity with digital communication tools. True False
Study smarter with the SolutionInn App