Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project objectives: To create GUI using JavaFx framework To apply the concept of Event - Driven Programming ) Create a simple computer program that provides

Project objectives:
To create GUI using JavaFx framework
To apply the concept of Event-Driven Programming
)
Create a simple computer program that provides the Palestinian people with a way to remember their
martyrs based on their date of martyrdom. Your program should display a list of martyr names and two
text boxes. The user is required to type two names into the provided text boxes and then press a Submit
button. The program ensures that the entered names come from the name list and are arranged in the
correct order of the date of martyrdom. Here is what the display should look like after the user enters
the names "martyr 1 and "martyr2":
Memary Test
Test your memory
Hey my friend! Test your memory to see if you remember who was martyred before.
Pick two Martyr names from the following list, enter them in the boues in the coerect order (date of deathy, and then press
the Submit button.
marty 7 martyr8
martye15 martyr16
marty:23 martyr 24
martyr 30
martyr24
Figure 1: Memory Test Window
If the user clicks the Clear button, the two names in the text boxes should disappear, and the
user should be able to repeat the exercise. Notice that the "You are correct!" message on the
interface should initially be empty. If the user does not follow the instructions, different
messages should appear instead of "You are correct!", as follows:
If there is nothing in either of the two text boxes, show:
Enter names in both boxes. Then press submit.
If neither of the two entered names is in the list, show:
Neither entry is in the name list.
If the first name is not in the list, show:
First entry not in name list - check spelling.
If the second name is not in the list, show:
Second entry not in name list - check spelling.
If both names are from the list but are the same, show
You entered the same names. Try again.
If both names are from the list, but are in the wrong order, show:
Wrong. Try again.
To make the user interface more attractive, add a combo box with different colors, allowing the user
to adjust the theme of the interface. For example, selecting the color red will change the theme of
the interface to red. You can add different colors based on what you find more attractive. You have
to use JavaFX CSS to update the style of the interface.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions