8253606: Need to add missed constructor to the SwingEventMonitor

Reviewed-by: jdv, pbansal, prr
This commit is contained in:
Sergey Bylokhov 2020-10-02 22:03:55 +00:00
parent 58102386eb
commit d296708ca6

View File

@ -58,10 +58,6 @@ import javax.accessibility.*;
*/
public class SwingEventMonitor extends AWTEventMonitor {
/**
* Constructs a {@code SwingEventMonitor}.
*/
/**
* The master list of all listeners registered by other classes.
* This can only be publicly modified by calling the add or
@ -77,6 +73,11 @@ public class SwingEventMonitor extends AWTEventMonitor {
*/
static private final SwingEventListener swingListener = new SwingEventListener();
/**
* Constructs a {@code SwingEventMonitor}.
*/
public SwingEventMonitor() {}
/**
* Adds the specified listener to receive all {@link EventID#ANCESTOR ANCESTOR}
* events on each component instance in the Java Virtual Machine as they occur.