applet无法在网页显示
package applet;import java.awt.*;
import java.applet.*;
public class Applet1 extends Applet{
public void paint(Graphics g){
this.setBackground(Color.red);
g.drawString("Applet的世界....",20,50);
}
}
<Htm>
<Body>
<h1>制作Applet</h1>
<Applet code="applet.Applet1.class" width=150 height=100>
</Applet>
</Body>
</Htm>
若把package applet;去掉就可以显示了,怎么在有包存在的情况下,也能正常显示呢,谢谢了.