Java Reference
In-Depth Information
Figure 14.5
LifecycleDemo applet displays the number of times the paint() method is
invoked.
Step 4: View the Java Console
A good question to ask now is: Where did the output of the System.out.println()
calls go? There is no command prompt because this is an applet, and the output
did not appear anywhere on the Web page.
Invoking the System.out.println() method in an applet sends the output to
the Java console. How you view the Java console depends on which browser you
are using.
If you are using a JVM that is a part of Internet Explorer, follow these steps to
display the Java console. (If you see the Java logo down on your taskbar when
you view an applet, your browser is using the Java plug-in and you can skip the
following steps):
1.
Select the Internet Options menu item, which is found on either the
View menu or the Tools menu, to open the Internet Options dialog box.
2.
Click the Advanced tab, and page down about halfway to the section
titled Java.
3.
Check the Show Java console (requires restart) box.
4.
Press the OK button to close the Internet Options dialog box.
5.
Close Internet Explorer and then open it again.
Search WWH ::




Custom Search