Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet not working

 
pendse anagha
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I am trying to write a very basic applet

However - I am not able to see the results on the browser
I have compiled the class successfully and browser detects the class
( I see the message - Applet HelloWorld started )
however the browser does not print out the "Hello World!" Message

Could someone point me to the error / mistake ?
Here is the code snippet ( picked up from sun's site )
HelloWorld.java


Thanks in advance ,
-anagha
 
Shalini Chandel
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing wrong with your code. It's running perfectly. Close the browser and run it again or increase the height of the applet and then see the result.

Regards,
Shalini
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic