Closed
Bug 91636
Opened 25 years ago
Closed 24 years ago
Mouse motion (mouseMoved event) not transmitted to applet
Categories
(Core Graveyard :: Java: OJI, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ross, Assigned: nezbo)
References
Details
(Keywords: qawanted)
Attachments
(2 files)
If you call addMouseMotionListener, you should get an event for every movement
of the mouse. Those events are not being passed on to the Java applets.
This applet illustrates (you'll have to look at the console log [hard to find
BTW] to see the results:
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Minimal extends Applet implements MouseListener, MouseMotionListener
{
static int instanceCount = 0;
public Minimal() {
System.out.println("new instance #" + ++instanceCount);
addMouseListener(this);
addMouseMotionListener(this);
}
public void init() {
System.out.println("init");
}
public void start() {
System.out.println("start");
}
public void stop() {
System.out.println("stop");
}
public void destroy() {
System.out.println("destroy");
}
public void mouseClicked(MouseEvent e) {
System.out.println("mouse clicked " + e);
e.consume();
}
public void mousePressed(MouseEvent e) {
System.out.println("mouse pressed " + e);
e.consume();
}
public void mouseReleased(MouseEvent e) {
System.out.println("mouse released " + e);
e.consume();
}
public void mouseMoved(MouseEvent e) {
System.out.println("mouse moved " + e);
e.consume();
}
public void mouseDragged(MouseEvent e) {
System.out.println("mouse dragged " + e);
e.consume();
}
public void mouseEntered(MouseEvent e) {
System.out.println("mouse entered " + e);
e.consume();
}
public void mouseExited(MouseEvent e) {
System.out.println("mouse exited " + e);
e.consume();
}
}
Comment 3•24 years ago
|
||
SPAM: reassigning all OJI bugs to new OJI QA, pmac ( 227 bugs)
QA Contact: shrir → pmac
Comment 5•24 years ago
|
||
I tested this with Mozilla 2002041711 (1.0 RC1) with JPI 1.4.0 and the mouse
motion events are being passed to the applet. In particular, I see MOUSE_MOVED,
MOUSE_ENTERED, MOUSE_EXITED, MOUSE_DRAGGED, MOUS_RELEASED, MOUSE_PRESSED,
MOUSE_CLICKED.
I recommend marking FIXED.
Comment 6•24 years ago
|
||
cool, thanks!
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 7•24 years ago
|
||
I didn't realize that this was Mac OS 9. I tested in Windows 2000. Somebody
still needs to test this in Mac OS 9.
Sorry about the confusion.
I will attach a ready-to-run testcase.
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
To run the testcase, download the Minimal.html file and the Minimal.class file
to the same folder on your web server. Then, browse to the web page. On Mac OS
9, I don't know where the System.out gets sent to, but I suppose there is a Java
console that displays output.
Comment 11•24 years ago
|
||
Verified on windows 98 (jre 1.4.0_01) and Mac os 9.2 (branch build:
2002-04-29-08-1.0.0)and commercial trunk (2002-04-29-08-TRUNK)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•