-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta3
-
x86
-
windows_nt, windows_2000
-
Verified
Name: icR10030 Date: 08/15/2001
Method isPopupTrigger() from class MouseEvent never returns true for any mouse event.
Due to the bug, two JCK1.4 interactive tests fails in Windows under jdk1.4.0-b75.
JDK : jdk1.4.0-b75, jre1.4.0-b75
JCK : JCK1.4-b07
Platform[s] : Windows 98, Windows NT 4.0
switch/Mode : -client -Xmixed, plugin for Netscape 4.7 and Internet Explorer 5.5
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : api/java_awt/interactive/PMenuTests.html#PMenuTests
api/javax_swing/interactive/JPMenuTests.html#JPMenuTests
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_awt/interactive/PMenuTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/interactive/JPMenuTests.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail16/results/merlin/b75/jck14/win32/win98_plugin_ns4.76_linux-17/workDir/api-interactive/java_awt/interactive/PMenuTests_PMenuTests.jtr
/net/jtgb4u4c.eng/export/sail16/results/merlin/b75/jck14/win32/win98_plugin_ns4.76_linux-17/workDir/api-interactive/javax_swing/interactive/JPMenuTests_JPMenuTests.jtr
How to reproduce:
=================
Compile and execute following class.
Inside white panel try to click different mouse buttons.
One of them is popup trigger (it depends on platform).
In Windows, this is generally right button.
The method isPopupTrigger() must return true for this mouse event.
But it does not.
//-------- test.java START---------------------
import java.awt.*;
import java.awt.event.*;
public class test extends Frame {
pmTester aPane = null;
public void init() {
aPane = new pmTester();
add(aPane);
}
public static void main(String[] args) {
test aFrame = new test();
aFrame.setSize(new Dimension(500,150));
aFrame.init();
aFrame.setVisible(true);
}
class pmTester extends Panel {
public pmTester() {
setLayout(new FlowLayout());
setBackground(Color.white);
enableEvents(AWTEvent.MOUSE_EVENT_MASK);
}
public void processMouseEvent(MouseEvent e) {
System.out.println(e);;
if (e.isPopupTrigger()) {
System.out.println("MOUSE EVENT IS POPUP TRIGGER !\n");;
}
super.processMouseEvent(e);
}
}
}
//-------- test.java END----------------------
Test output:
============
If test passes, it returns "MOUSE EVENT IS POPUP TRIGGER !" message.
If test fails, it does not return "MOUSE EVENT IS POPUP TRIGGER !" message.
Specific Machine Info:
======================
Hostname: linux-21
Os: Windows NT 4.0
======================================================================
- duplicates
-
JDK-4492247 mouse events not properly posted in build 75
-
- Closed
-
-
JDK-4496196 MouseEvent.isPopupTrigger() always returns false in the latest CAP build 76
-
- Closed
-
-
JDK-4500123 REGRESSION: MouseEvent.isPopupTrigger is never true in Windows
-
- Closed
-
-
JDK-4498374 Regression: MouseEvent not sent to MouseAdapter, Can not fire JPopupMenu
-
- Closed
-