Applets: Difference between IE and Netscape?

Posted on 2002-05-28
Last Modified: 2013-11-23
Is there a different event handling (mouse and keyboard) in MS IE and Netscape?
When working with Netscape everything is fine:

public class myClass extends Applet implements MouseMotionListener, MouseListener, KeyListener, ActionListener

Doing this under IE does only fire the mouseDrag event.
Do I have to work with the old Java 1.0 event handling modell to get my applet up and running?
Question by:max-hb
  • 3
  • 2
LVL 35

Expert Comment

ID: 7039017
LVL 16

Expert Comment

ID: 7039584
what exactly is the problem ?

post the full code.

Author Comment

ID: 7041480
Further investigation using the java-console of MS IE shows me

java.lang.NoSuchMethodError: java/awt/Rectangle: method getX()D not found

So obviously not the eventhandling is the problem but my usage of rectangles. I use them to implement a drag and drop operation and to find intersections of different (movable) rectangular objects.
In the Java 2 API documentation I found this method and it's happily accepted by the javac compiler and my Netscape Navigator.
Only IE is having problems - why?

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

LVL 16

Accepted Solution

heyhey_ earned 50 total points
ID: 7041488
IE native VM is Java 1.1 compatible. you have to either write 1.1 compatible code or use Java plug-in.

Author Comment

ID: 7041498
O.K., where can I find documentation about Java 1.1 and rectangles, so I can modify my code? Hope Rectangle wasn't introduced after 1.1 ;-)

Author Comment

ID: 7041670
Thx to heyhey I could fix the problem. Points will be granted right now.
For those interested: The old Java 1.1 API specification can be found at:

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

744 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

13 Experts available now in Live!

Get 1:1 Help Now