CMPG 211 Assignment - GUI
Graphical User Interface: Chapter 14, 15 and 16
(Liang)
Do the following:
Create a new project called Guess game. Create
a JavaFX class and create the layout shown
below.
The computer must generate a rondom number of the range from 1
to 10 in the Random
number button.
The user must guess what number has been generated by entering
an integer number.
In the Check match button : compare the number
that was enteredc to the random number.
Compile and display a suitable message (String) that contains
the number that was entered and
a message too high or too low
Display the message in the text area
With each guess the number of guesses must be incremented, the
textfield must be cleared and
the focus must be on the textfield (Hint: Use the requestFocus()
method on the textfield).
If the numbers are the same, display the number and a message
Correct! And display the total
number of guesses
CMPG 211 Assignment - GUI Graphical User Interface: Chapter 14, 15 and 16 (Liang) Do the following: Create a new pro
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am