Closed Thread Icon

Preserved Topic: Applet Question (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=12151" title="Pages that link to Preserved Topic: Applet Question (Page 1 of 1)" rel="nofollow" >Preserved Topic: Applet Question <span class="small">(Page 1 of 1)</span>\

 
Sash
Paranoid (IV) Inmate

From: Canada, Toronto
Insane since: May 2000

posted posted 03-30-2002 00:14

I have a simple java applet here:

code:
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.awt.Color;

public class Ellipse extends Applet
{
public void paint(Graphics g)
{
Graphics2D g2 = (Graphics2D)g;

Ellipse2D.Double easterEgg = new Ellipse2D.Double(50, 100, 300, 200);

g2.setColor(Color.red);
g2.fill(easterEgg);
}
}



Using appletviewer I can see a red ellipse. However the same thing doesn't show up in my browser (Win/IE6).

Here is the html code:

code:
<html>
<head>

<title>Applet example</title>

</head>

<body>

<applet code="Ellipse.class" width="400" height="400"></applet>

</body>
</html>



I only see gray applet area, and it says "Applet Started", but where is my ellipse?
What am I doing wrong?

I am able to see other applets.

[This message has been edited by Sash (edited 03-30-2002).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-30-2002 13:17

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-30-2002 13:28

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Sash
Paranoid (IV) Inmate

From: Canada, Toronto
Insane since: May 2000

posted posted 03-30-2002 18:16

Thank you InI, this makes sense.

I installed jre 1.4 and it looks good, the ellipse shows up. I don't really care about backwards compatibility because this is the stuff that I am doing only for my testing purposes (for know, he he). It is important that I can see it

BTW, I am compiling with version 1.3.1

Sasha.

[This message has been edited by Sash (edited 03-30-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu