• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Learning about applets

 
Paul Roberts
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Console does not appear automatically. You need to open it yourself; check the settings in the Java Control Panel.
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic