File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Learning about applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Learning about applets" Watch "Learning about applets" New topic
Author

Learning about applets

Paul Roberts
Greenhorn

Joined: Sep 26, 2011
Posts: 11
I've reached the part of my tutorial which looks at applet events. It gives some code and tells me to compile, load and run it. I am expecting a console to appear

and messages to be generated depending on what I do with the mouse or the keyboard. At the moment nothing is happening. Below I have included a simple

html tag followed by the code for the applet. If someone would point out what I'm doing wrong I'd be much obliged.


HTML TAG

<HTML>
<HEAD>
<TITLE> Event Tutor </TITLE>
</HEAD>

<BODY>

<APPLET code="EventTutor.class"></APPLET>
</BODY>
</HTML>


APPLET

Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
The Java Console does not appear automatically. You need to open it yourself; check the settings in the Java Control Panel.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

Paul Roberts wrote:I am expecting a console to appear and messages to be generated depending on what I do with the mouse or the keyboard.


Why? That isn't the normal thing for an applet to do.

If you really want to see the Java console (and remember, the Java console isn't a normal part of using an applet) then there should be a "Java" icon somewhere on your system's task bar when you load an applet into your browser. One of its options is to open the Java console.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Learning about applets
 
It's not a secret anymore!