Solved

diffirent behaviour between IE40  and Navigator 404

Posted on 1998-06-28
2
156 Views
Last Modified: 2010-03-30
SDK 1.01
Development platform Win95
I write some code :import java.applet.*;
import java.awt.*;

public class j2 extends Applet
{
      Button bt=new Button("Quit");
      TextArea ta=new TextArea(" ");
           public void init()
      {
       
              add(bt);
              add(ta);
                  resize(420, 240);
      }

      public boolean handleEvent(Event evt)
      {
      switch(evt.id)
      {
      case Event.MOUSE_DOWN :
            if(evt.metaDown())
             ta.appendText("Mouse right down\r\n");
            else
             ta.appendText("Mouse down\r\n");
      return true;
      default :
            return false;
      }
}


}
in Navigator when I click right button at anywhere in the applet a property sheet and a string "Mouse right down" appear (it mean I can handle that event)
but in IE40 if I click right button on "Quit" button or on text area string "Mouse right down " doesn't appear .
what wrong with my code ?
Thanks in advance.
0
Comment
Question by:tungsim
2 Comments
 

Author Comment

by:tungsim
ID: 1223918
Edited text of question
0
 
LVL 1

Accepted Solution

by:
rprice032897 earned 50 total points
ID: 1223919
tungsim,

Check your IE4 settings.  I compiled this (JDK 1.1.6), put it on a page and it ran fine in IE4 (ver. 4.72.2106.8).

You do, however, need to update the deprecated methods in the applet.

appendText is now append.

handleEvent has also been deprecated with the changes to the 1.1 event model.  The JDK docs tell how to convert.

The applet does indeed run well on IE4, so I would look toward browser/machine/system settings for an answer.

Rick Price
r_price@mailexcite.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
create a gui in perl 3 70
maven project error 5 48
factorial example 4 34
expectj telnet failing 5 22
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now