Question: userInterface package BoggleUi.java Add member variables Primitive data type int for the players score Write an inner class to create an ActionListener that is registered

userInterface package

BoggleUi.java

Add member variables

Primitive data type int for the players score

Write an inner class to create an ActionListener that is registered to the JButton with text Submit Word; it shouldValidate if the word can be used based on the dictionary text file provided

if it is not included in the dictionary notify the user the word was not valid and do not add it to the JTextPane

if it is included in the dictionary, update the JTextPane by adding the word fromv the JLabel representing the Current Word

Clear the JLabel representing the Current Word

Write an inner class to create an ActionListener that is registered to the 16 JButtons that represent the dice on the board; when the JButton is clicked it should

Update the JLabel representing the current word with the letter on the die and concatenate it to existing text

Update the UI so only the available letters are enabled, all other letters are disabled based on the rules of Boggle; reference the PDF document for the rules of the game.

Update the inner class that created the ActionListener for the javax.swing.Timer event handler; it should do the following:

Stop the timer

Randomly determines how many of the players word the computer found as well

Randomly select which words of the players were found by the computer

Strike through the words in the JTextPane

Update the JLabel representing the players score for their final game score

Test case 1

User clicks letters on Boggle Board

Letter is displayed in the JLabel representing current word

Letters not eligible for use are disabled

Test case 2

User clicks the Submit Word button

Word is checked for validity

If valid, word is displayed in the Text Area

If not valid, is not added

JLabel of current word is cleared out

JLabel of Score is updated based on the rules

Test case 3

Time is 0

Game ends

Computer checks its words against the player

Same words are lined through in the players word list

Players score is updated to reflect final game score

 userInterface package BoggleUi.java Add member variables Primitive data type int for

the players score Write an inner class to create an ActionListener that

is registered to the JButton with text Submit Word; it shouldValidate if

the word can be used based on the dictionary text file provided

if it is not included in the dictionary notify the user the

word was not valid and do not add it to the JTextPane

Boggle Boggle Boggle Board Enter WNords Found 0 Time Left 2:57 Shake Dice Current Word Current Word Score Submit Word

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!