wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Marshal

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


Ping & DNS - my free Android networking tools app
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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
 
Similar Threads
How to shrink/grow lines
YoYo goes up and down on a string but the yoyo doll doesn't display it appears broken in Internet Ex
awt classes
Java Applet code
Function about the class