Jennifer
asked on
Java Applet
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
"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
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. */
}
}
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. */
}
}
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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