Stephanie Maven

Greenhorn
+ Follow
since Oct 15, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stephanie Maven

Thank you very much!
18 years ago
If there is a newbie silly question of the year award, I will win it.

How do I make the symbol ||? I copy and paste it , because I don't have it on my keyboard and don't know what command creates it.

Thanks
18 years ago
If anyone can tell me why I needed to remove the dot, it might help me in the future too, thanks
18 years ago
Wow, that worked, thanks! I drew and ecllipse!

I don't understand why it worked, however, both the textbook and the API documentation shows it with a dot.

I'll carry on - I am sure I will be back. Thanks for the help. This is very frustrating to learn!
18 years ago
the error mess age is - '{' expected

on this line

public class Ellipse2D.DoubleApplet extends Applet

and even though I am so new! I am pretty sure I don't put a bracket before or at the end of that line, the other examples don't have one.
18 years ago
I am taking a beginner course and just started today to read about applets and graphics. This is not homework, I am creating this for practice as I read the chapter. I followed an example of an applet to draw a rectangle:

import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;

/**
An applet that draws two rectangles.
*/
public class RectangleApplet extends Applet
{
public void paint(Graphics g)
{

Graphics2D g2 = (Graphics2D)g;


Rectangle cerealBox = new Rectangle(5, 10, 20, 30);
g2.draw(cerealBox);
}
}

and created one to draw an Ellipse:

import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;

/**
An applet that draws an ellipse.
*/

public class Ellipse2D.DoubleApplet extends Applet

{
public void paint(Graphics g)
{
Graphics2D g2 = (Graphics2D)g;

Ellipse2D.Double easterEgg = new Ellipse2D.Double(5, 10, 15, 20);

g2.draw(easterEgg);
}
}

but it doesn't compile. I imagine the error is very simple! But I am totally new to this so I apologize for such a basic question. Is my class worng? Thanks for any help.
18 years ago