Very Basic Applet Question
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chris_McAnally
Posted On:   Wednesday, August 27, 2003 11:03 AM

Hello I'm a High school CS teacher and it's been forever since I did Applets (not something I did professionally). I've got a simple applet created and can view it with Appletviewer.exe, but I can't run it in Internet Explorer or Netscape. Without further adeu, here is my HTML file. The Webpage The Applet code is here: // Java0203.java // This program is used to demonstrate how to execute a Java Applet // in either a web page or with appletviewer.exe. import java.awt.Graphics; public class Java0203 extends java.applet.Applet { public void paint(Graphics screen) { scre   More>>

Hello I'm a High school CS teacher and it's been forever since I did Applets (not something I did professionally). I've got a simple applet created and can view it with Appletviewer.exe, but I can't run it in Internet Explorer or Netscape.





Without further adeu, here is my HTML file.

The Webpage



The Applet code is here:

// Java0203.java

// This program is used to demonstrate how to execute a Java Applet

// in either a web page or with appletviewer.exe.



import java.awt.Graphics;




public class Java0203 extends java.applet.Applet

{

public void paint(Graphics screen)

{

screen.drawLine(0,0,800,600);

screen.drawLine(0,600,800,0);

screen.drawLine(100,300,700,300);

screen.drawLine(400,100,400,500);

}

}

   <<Less

Re: Very Basic Applet Question

Posted By:   Brian_Glodde  
Posted On:   Wednesday, August 27, 2003 11:17 AM

Where is the .class file located?
About | Sitemap | Contact