This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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
Marshal

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


Android appsImageJ pluginsJava web charts
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Learning about applets
 
Similar Threads
awt classes
Java Applet code
Function about the class
YoYo goes up and down on a string but the yoyo doll doesn't display it appears broken in Internet Ex
How to shrink/grow lines