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

Mutex  locks and semaphores, as discussed in class, are different techniques to  solve the race condition and to ensure an efficient synchronization

Mutex  locks and semaphores, as discussed in class, are different techniques to  solve the race condition and to ensure an efficient synchronization  between cooperating threads and processes. you will use semaphores to  solve a number of synchronization problems between cooperating threads. important to note that: •  Semaphore, in literature, uses

(Financial application: compute the future  investment value) Write a method that computes future investment value  at a given interest rate for a

(Financial application: compute the future  investment value) Write a method that computes future investment value  at a given interest rate for a specified number of years. The future  investment is determined using the formula in Programming Exercise 2.21.  Use the following method header: public static double  futureInvestmentValue(double investmentAmount, double  monthlyInterestRate,

Task 2: Text Counter (USING JAVAFX) Develop a class TextCounter that extends javafx.scene.text.Text and implements Runnable. Your layout should appear

Task 2: Text Counter (USING JAVAFX) Develop a class TextCounter that extends javafx.scene.text.Text and implements Runnable. Your layout should appear similar to the image below.  Next, develop a class IntCounter that has an integer counter intialised to 0, and methods incrementCount, getCount and setCount.  For this application, create Start, Pause

Task 2: Text Counter (USING JAVAFX) Develop a class TextCounter that extends javafx.scene.text.Text and implements Runnable. Your layout should appear

Task 2: Text Counter (USING JAVAFX) Develop a class TextCounter that extends javafx.scene.text.Text and implements Runnable. Your layout should appear similar to the image below.  Next, develop a class IntCounter that has an integer counter intialised to 0, and methods incrementCount, getCount and setCount.  For this application, create Start, Pause