• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

APLLET NOT INITIALISED

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What errors are you getting on the java console when you get "applet not initialsed"?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "code" attribute needs to point to the class extending the Applet class.
 
please buy this thing and then I get a fat cut of the action:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic