Hello Mr. Guo,
This is HeaKyung Park. My project is with Java servlet and I have a
question to ask for. I am trying to display an applet and I am getting a
message, "Applet could not be loaded". I am using jsdk2.1, I placed html
file under webpages directory and directed codebase to "servlet/" where I
placed my applet class and java files. Thanks for any help.
My source code of each html and applet is as follows;
HTML file;
<html><head><title>Gantt Chart</title></head><body>
<h1>Project Schedule in Gantt Chart</h1>
<applet code="gantt.class" CODEBASE="servlet/" width=500
height=500></applet>
<hr><address><a href="mailto:[EMAIL PROTECTED]">Hea-Kyung
Park</a></address>
<!-- Created: Mon Oct 2 01:03:58 CDT 2000 --><!-- hhmts start -->
Last modified: Fri Oct 27 19:24:04 CDT 2000
<!-- hhmts end -->
</body></html>
Applet source code;
import java.awt.*;
import java.applet.*;
public class gantt extends Applet
{
int step_size = 0;
String month = "";
public void init() {
step_size = 18;
month = "w";
setBackground(Color.green);
}
public void paint(Graphics g) {
//g.drawRect(35, 35, 325, 325);
//g.drawRect(35, 35, 325, 325);
g.drawRect(10, 10, 380, 380);
for (int i = 0; i < step_size; i++) {
g.drawString(month+i, 30+i*20, 380);
g.drawLine(30+i*20, 10, 30+i*20, 380+3);
}
}
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html