Question: Java Question Problem description Create a JPanel called DicePanel. A DicePanel displays a picture of a die with one to six spots. The number of
Java Question
Problem description
Create a JPanel called DicePanel. A DicePanel displays a picture of a die with one to six spots. The number of spots on each die should be chosen randomly each time you run the program. Use any layout manager you like, and display the dice with your own colors and design.
Create a JFrame that displays two DicePanel objects.
At the bottom of the frame display sum of the dice. You can have your program draw on the panels or you can have six dice images stored and display the appropriate image, depending on two random numbers.

Analyze the problem and design the class
Implement the method to create a JPanel
Implement the method to create a JFrame
Write a main method to display the dice
Run the program and records the test results
Dice You rolled 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
