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 graphics. Your

Magic 8 Ball Java Program

It will be a Java application. It will use the appropriate Swing and Abstract Window Toolkit classes for graphics.

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_2

Step: 3

blur-text-image_3

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

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions

Question

Propose an estimator of var b0 k . Does an unbiased version exist?

Answered: 1 week ago