Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applet

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does Oracle recommends to write a following in every applet code?

  • /*
    <applet code = "MyApplet" width=200 height=60>
    </applet>

    */
  •  
    Saloon Keeper
    Posts: 6522
    160
    Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    That way you can use the appletviewer tool to execute the applet by invoking it with "appletviewer MyApplet.html" - appletviewer understands the HTML syntax of the applet tag, and will open an applet window running that class with the correct size.
     
    Master Rancher
    Posts: 3876
    35
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    use the appletviewer tool to execute the applet by invoking it with "appletviewer MyApplet.java"


    Putting that code in the source file saves you having to create a separate html file for testing.
     
    VarunS Singh
    Ranch Hand
    Posts: 38
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    But how to perform a testing if I want to?
     
    Tim Moores
    Saloon Keeper
    Posts: 6522
    160
    Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    What do you mean by that? What constitutes a "test", and what prevents you from doing any testing you care to do?
      Bookmark Topic Watch Topic
    • New Topic