Solved

Java Applet

Posted on 2001-08-27
4
499 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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 will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

724 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