Question: Instructions Download the dice images: dice.zip Open the Java project 1410_LABS and add a new package called guidice. Create a new JFrame called LabGuidice.java Display

 Instructions Download the dice images: dice.zip Open the Java project 1410_LABSand add a new package called guidice. Create a new JFrame calledLabGuidice.java Display a button at the bottom of the JFRame. It shouldsay "Roll 'Em" Set the background color, foreground color, font size, andfont family of the button. The size of the font should beapproximate 's the size of the die. Extract a method to refactorthe code as demonstrated in the practice exercises. Center a die imagein the remaining space of the GUI. Every time the program is

Instructions Download the dice images: dice.zip Open the Java project 1410_LABS and add a new package called guidice. Create a new JFrame called LabGuidice.java Display a button at the bottom of the JFRame. It should say "Roll 'Em" Set the background color, foreground color, font size, and font family of the button. The size of the font should be approximate 's the size of the die. Extract a method to refactor the code as demonstrated in the practice exercises. Center a die image in the remaining space of the GUI. Every time the program is started, a random die image is displayed. Refactor the code as demonstrated in the practice exercises. Implement an event handler Every time the "Roll 'Em" button is clicked, a random die is displayed on the screen. However, the same button should never be displayed twice in a row. In other words, every time the button is clicked, the image changes. Notice: Your program can look different than the Sample GUI as long as the requirements above are fulfilled. Feel free to be creative when choosing colors, fonts, etc. Sample GUI: X Roll HD

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!