• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

applets  RSS feed

 
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>
 
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.
 
ranger
Posts: 17344
11
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
 
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!
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!