Ok filerne ligger også på nettet og her er detaljerne på dem......
Kan fejlen ligge der ?
Her er html koden
<html>
<head>
</head>
<body>
<center>
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<OBJECT
classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
WIDTH = "600" HEIGHT = "400" >
<PARAM NAME = CODE VALUE = "applet1.class" >
<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
<PARAM NAME = "scriptable" VALUE = "false">
<COMMENT>
<EMBED
type = "application/x-java-applet;version=1.4"
CODE = "applet1.class"
WIDTH = "600"
HEIGHT = "400"
scriptable = false
pluginspage = "http://java.sun.com/products/plugin/index.html#download">
<NOEMBED>
</NOEMBED>
</EMBED>
</COMMENT>
</OBJECT>
<!--
<APPLET CODE = "applet1.class" WIDTH = "600" HEIGHT = "400">
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
Her er koden til min java fil applet1.java
import java.awt.*;
import java.applet.*;
public class applet1 extends java.applet.Applet
{
public void paint(java.awt.Graphics g)
{
g.drawString("Hallo du der",50,25);
}
}
Her ligger filerne
Html
http://iceb.dk/java/applet1.htmlJava filen
http://iceb.dk/java/applet1.javaog class filen
http://iceb.dk/java/applet1.class [Redigeret d. 09/12-02 18:45:02 af Rasmus]