Pozdrav svima.
Pokusavam da napravim prvi aplet, ali naisao sam na
problem. Nikako ne mogu da aplet prikazem u Internet Exploreru.
Ovo je kod apleta:
package helloworld;
public class HelloWorld extends java.applet.Applet
{
public void paint(java.awt.Graphics g)
{
g.drawString("Hello, world!", 100, 25);
}
}
ovo je html stranica:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<applet code="HelloWorld.class" width="400" height="50">
</applet>
The Lake-Applet<br><br>
<applet CODE="lake.class" width="370" height="200">
<param name="image" value="sunset.gif">
</applet>
</body>
</html>
Aplet lake.class se sasvim lepo prikaze u IE, dok za HelloWorld dobijem poruku
class not found.
Inace i HelloWorld.class i lake.class i html stranica se nalaze u istom direktorijumu.
U cemu gresim.
Unapred hvala, Peda.