Solved

Applets: Difference between IE and Netscape?

Posted on 2002-05-28
6
150 Views
Last Modified: 2013-11-23
Hi!
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?
0
Comment
Question by:max-hb
  • 3
  • 2
6 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 7039017
listening...
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 7039584
what exactly is the problem ?

post the full code.
0
 
LVL 4

Author Comment

by:max-hb
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?

0
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.

 
LVL 16

Accepted Solution

by:
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.
0
 
LVL 4

Author Comment

by:max-hb
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 ;-)
0
 
LVL 4

Author Comment

by:max-hb
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:
http://java.sun.com/products/jdk/1.1/docs/api/
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
topping1 challenge 7 73
topping3 challenge 14 70
Non-recursive backtracking, using a stack 1 103
map related example 6 38
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

863 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

21 Experts available now in Live!

Get 1:1 Help Now