• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

how can i check if stop() method is called in applet ..

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out.println() cannot work i guess since, this is an applet embedded in a jsp page .., if i try to write a message to a textarea in the applet, when the stop() method is called how can i see it, since the page would have already changed ?
will other browsers be able to see the change affected by the first one ?
simply how can i check if the stop method of applet is being called when user leaves the page ?
thanks
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both IE and Netscape allow you to enable a java console that (among other things) captures stdout.
If you put System.out.println("FOO"); in the stop() method you should see the FOO in the java console.
I'm not sure how to turn the console on in Netscape but in IE its under Tools->Internet Options-> advanced->Microsoft VM-> Java Console Enabled (Requires Restart)
To view the java console in IE once the page that has the applet is loaded in the System tray of Windows double click on the JAVA Icon (Its either Duke or the Coffee Cup picture).
Hope this helps.
[ August 05, 2002: Message edited by: Heath Lilley ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!