• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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 ?
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 ]
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic