• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applets

 
Gavawedservadmin.
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this test program has a problem opening under appletviewer. can you tell me why? can you also tell me how to fix it? this is the code for the program and the applet tag.
//this is a test applet. I plan to build on this.
import java.awt.*;
import java.applet.*;
public class simple extends Applet
{
public void paint(Graphics g)
{
g.drawString("Natasha is beautiful",28,30);
}
}
<applet code="simpleapplet" width=200 height=60>
</applet>
 
parthiban subramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
this is an example of a applet tag def
<APPLET CODE="applet.class"
WIDTH= 350
HEIGHT= 175
CODEBASE="/classes/jr/"
ARCHIVE="app.jar">
thats the applet tag
and you are having problems cos of the code=simpleapplet .. change it to simple.class and you should be able to have a go
and i dont understand what is applets doing in the scjd thingy
hope this helps,
cheers,
parthi.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't have anything to do with the SCJD, I am going to move this post to a more appropriate forum.
Mark
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Gavawedservadmin",
Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name
here:

You can also find the naming policy
here:
Thank You!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic