Question: Given the following program skeleton. Replace with a createContents method such that the resulting window matches the customer feedback window shown earlier in this chapter,

Given the following program skeleton. Replace with a createContents method such that the resulting window matches the customer feedback window shown earlier in this chapter, in the TextArea Control section. You’ll want to instantiate two Label controls and a TextArea control and add them to the VBox pane. Run your completed program to make sure your generated form looks the same as what’s in the book. In particular, pay attention to these things:

• The pane should have 15 pixels of padding.

• Normally, a TextArea box will span the entire width of a VBox. Prevent that default behavior.

• User input should wrap to the next line when it bumps up against the box’s right edge.

import javafx.application. Application; import javafx.stage.Stage; import javafx.scene. Scene; import

import javafx.application. Application; import javafx.stage.Stage; import javafx.scene. Scene; import javafx.scene.layout. *; import javafx.scene.control.*; // Label, TextArea public class Customer Feedback extends Application { private static final int WIDTH 550; private static final int HEIGHT = 250; 1 public void start (Stage stage) { VBox pane = new VBox (15); Scene scene = new Scene(pane, WIDTH, HEIGHT); //*** = create Contents (pane); stage.setTitle("Tek Support Masters Support Masters - We know everything!"); stage.setScene (scene); stage.show(); } // end start } // end class Customer Feedback * * *

Step by Step Solution

3.45 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on your request you want to create a form with a TextArea and some Label controls in JavaFX To ... 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!