Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help finishing this GUI? Ch 6 Activity 4: Die Class GUI 1. Download Die.java, DieGUI.java and DiePanel.java into the same package. 2. Use

I need help finishing this GUI? image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Ch 6 Activity 4: Die Class GUI 1. Download Die.java, DieGUI.java and DiePanel.java into the same package. 2. Use the Die.java and DieGUI.java classes provided. Do not make any changes to these classes 3. Using the DiePanel.java starting file, implement the DiePanel class as shown below. DiePanel creates a GUI for two Die objects. When both die roll a 1 it is called Snake Eyes. nitial GUI After a roll After a roll with Snake Eyes Ml Dice Game by P.Baker Dice Game by P.Baker Dice Game by PBaker Roll Some Dice!! Die #1 Die#2: | Roll Some Dicel Die #1: Die#2:16 Roll Some Dice! Die#1: 11 Die#2: 11 Snake Eyes? Snake Eyes? Snake Eyes? SI Count Snake Eyes: Count Snake Eyes: Count Snake Eyes: Hints: In the constructor . Make all JTextFields a width of 5. die1FaceValueField - new 3TextField(5); In the actionPerformed method: .To display the faceValue of diel in the textfield: die1FaceValueField.setText( Integer.tostring die1.getFaceValue() method convert to Stringget diel's faceValue name of textField it is an int

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions