Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

APLLET NOT INITIALISED

 
hi friends
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am on java2 and having done ''creating menu bar" and 'dialog boxes', I am held up at my first applet.
Here is the code I have written





HTML CODE:


<html>
<body>
<applet code=SampleDialog.class width=300 height=300>
</applet>
</body>
</html>



when i run the code there is no error and when i make applet viewer to run..at the bottom left corner "start:applet not initialised" is displayed.


please anyone help me to solve this !!!

thank you in advance
 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Hi friends",
Welcome to the Ranch

On your way in, looks like you missed out on our naming policy which says, display names should not be obviously fictitious. Could you please adjust your screen name to comply to the same? (just click on the "my profile" link at the top of this page).

To get the most out of the ranch, you might want to read http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch which contains several tips such as using code tags. I have edited your original post and as you can see the code is much better formatted and easier to read.

I am also moving your post to a more appropriate forum. As you know, we have several forums here, and it is advisable to post in the proper forum.

 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What errors are you getting on the java console when you get "applet not initialsed"?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "code" attribute needs to point to the class extending the Applet class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic