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)

PowerPC
Mac System 9.x
defect
Not set
blocker

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(); } }
Reassign to terry
Assignee: edburns → tnoyes
Ahh Terry, I have a patch to fix this in bug 90574.
Status: UNCONFIRMED → NEW
Depends on: 90574
Ever confirmed: true
No longer depends on: 90574
Blocks: 90574
SPAM: reassigning all OJI bugs to new OJI QA, pmac ( 227 bugs)
QA Contact: shrir → pmac
This may be fixed now. Adding qawanted.
Keywords: qawanted
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.
cool, thanks!
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
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.
Attached file HTML for applet
Attached file class file for applet
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.
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
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: