Solved

Java Applet

Posted on 2001-08-27
4
489 Views
Last Modified: 2013-11-23
Write a java applet that does the following functions based on a hard coded variable named "play". When play = 1 draw one blue circle on the right and display the following text below the circle on the left hand side:
"If all our misfortunes were laid in one common heap, whence everyone must take an equal portion, most people would be content to take their own and depart."
- - Socrates
0
Comment
Question by:Jennifer
4 Comments
 
LVL 4

Expert Comment

by:sdussinger
ID: 6430275
The EE membership agreement is pretty clear: we're not supposed to do your homework for you.

If you have specific questions about how to do things, then by all means ask away. But we can't write your assignment for you.

--Steve
0
 
LVL 12

Expert Comment

by:ahosang
ID: 6430377
import java.applet.Applet;
import java.awt.*;

public class MyApplet extends Applet {
  int play=1;
 
 
  public void paint(Graphics g) {
    /* Do som conditional logic which tests if play is equal to '1' and then you will draw the relevent things. You need to learn about the paint method now and see how it can draw circles and write text. */
  }
}
0
 
LVL 5

Expert Comment

by:vemul
ID: 7755842
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- To be PAQ'ed and points NOT refunded

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7847054
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SPLUNK REST  API call to Splunk to create and index? 2 70
parentbit challenge 3 52
topping2 challenge 13 59
eclipse formatting 6 41
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now