This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 42958
    
  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: 19728
    
  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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Learning about applets
 
It's not a secret anymore!