Use JavaFX. No Swing or Awt Enhanced the Hollywood Star Generator app Write a program that allows a user to enter a name into an input box  and your

Use JavaFX. No Swing or Awt

Enhanced the Hollywood Star Generator app

Write a program that allows a user to enter a name into an input box  and your program will display a star similar to the screenshot shown  below, with a name displayed in the star. Below are the requirements of  the program (or app):

1. Add a Star shape and the following:

a. fill the color with “Aqua” and

b. set the shape stroke with “Gold” color and

c. set stroke width to 5px.

2. Add a text shape and the following:

a. set the default text to “Your-Name” and

b. set the text content to align “center” horizontally and

c. set the font color to “Blue” and

d. set the font size to 25px and “bold” and e. add a “DropShadow” effect with offsetX to 15px and offset to 15px.

3. Add a textfield with a prompt text “Type your name here” to allow a user to enter a name.

4. Add a Generate button and its required functions to generate a use’s name on the text shape on the Start (e.g., John Wayne).

5. Add a Reset button and its required functions to reset all the controls back to the initial load conditions.

6. Set app title to “Draw a Super-Star”.

7. If the user hasn’t entered any name but the Generate button is  being clicked, the app will not change any things and it will stay in  its initial condition (refer to Figure-1 below).

8. You are required to create an app resembling to the app in the screenshot.

9. Verify the correctness of your app.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

The following program draws an BB-8 as shown below.  Modify the program to move the BB-8 left or right using the arrow keys.  The program can be download

The following program draws an BB-8 as shown below.  Modify the program to move the BB-8 left or right using the arrow keys.  The program can be download from the CMS. Please use Javafx  import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.input.KeyCode; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.scene.shape.Circle; import javafx.scene.shape.Line; import javafx.stage.Stage;