Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Magic 8 Ball Java Program It will be a Java application. It will use the appropriate Swing and Abstract Window Toolkit classes for Your Magic8Ball

image text in transcribed

Magic 8 Ball Java Program It will be a Java application. It will use the appropriate Swing and Abstract Window Toolkit classes for Your Magic8Ball class will extend JFrame and contain a JLabel, a JTextArea, and JScrollPane. The answers will be stored in a String array and selected by a random number generator. Your Magic8Ball will be capable of producing ten different answers. Five of the answers will be generally affirmative, five will be generally negative. If the answer selected by the Magic8Ball code is positive, the background color for the answer will be green. If the answer selected by the Magic8Ball code is negative, the background color will be red. The Magic8Ball will contain a disclaimer statement in a text area set in a scroll pane. Appropriate access modifiers will be assigned to classes and class members

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

Mysql Examples Explanations Explain Examples

Authors: Harry Baker ,Ray Yao

1st Edition

B0CQK9RN2J, 979-8872176237

More Books

Students also viewed these Databases questions