-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b60
-
generic
-
generic
-
Verified
For JDK7 the following code
public class Test {
public static void main(String[] args) {
new java.awt.event.MouseEvent(new javax.swing.JButton(), 0, 0, 0, 0,0,0,true, 0);
}
}
if executed with -Djava.awt.headless=true
will throw something like:
Exception in thread "main" java.lang.ExceptionInInitializerError
at Test.main(Test.java:4)
Caused by: java.awt.HeadlessException
at java.awt.MouseInfo.getNumberOfButtons(MouseInfo.java:122)
at java.awt.event.MouseEvent.<clinit>(MouseEvent.java:420)
... 1 more
public class Test {
public static void main(String[] args) {
new java.awt.event.MouseEvent(new javax.swing.JButton(), 0, 0, 0, 0,0,0,true, 0);
}
}
if executed with -Djava.awt.headless=true
will throw something like:
Exception in thread "main" java.lang.ExceptionInInitializerError
at Test.main(Test.java:4)
Caused by: java.awt.HeadlessException
at java.awt.MouseInfo.getNumberOfButtons(MouseInfo.java:122)
at java.awt.event.MouseEvent.<clinit>(MouseEvent.java:420)
... 1 more
- relates to
-
JDK-6842197 HeadlessException in KFM on JButton creation with
- Closed
-
JDK-6315717 Support For Mouse With Multiple Scroll Wheels and 4 or More Buttons
- Closed
-
JDK-6834576 PIT: closed/java/awt/ScrollPane/RemoveChild/ test fail with deadlock on rhel and sles
- Resolved
-
JDK-6799099 All automatic regression tests that create Robot fail on X11
- Closed
-
JDK-6833019 KeyboardFocusManager.getCurrentKeyboardFocusManager() throws unspecified HeadlessException
- Closed