• 0

[JAVA]Applet problem


Question

6 answers to this question

Recommended Posts

  • 0

import java.applet.*;
import java.awt.*;
public class boy extends Applet
{
	public void paint (Graphics g)
	{
 ?g.setColor(Color.red);
 ?g.drawString("...", 5, 10);
 ?g.setColor(Color.blue);
 ?g.drawString("......", 5, 30);
	}
}

Do I have to put my applet in a jar?

Here's the HTML

<applet code="boy.class" height=100 width=300>
</applet>

J2SDK 1.4.2, JAVA 1.5.0

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.