System.out.print("" + event + " - ");
event++;
}
public void logEvents() {
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("ACTION_EVENT_MASK: " + e);
}
}, AWTEvent.ACTION_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("ADJUSTMENT_EVENT_MASK: " + e);
}
}, AWTEvent.ADJUSTMENT_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("COMPONENT_EVENT_MASK: " + e);
}
}, AWTEvent.COMPONENT_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("CONTAINER_EVENT_MASK: " + e);
}
}, AWTEvent.CONTAINER_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("FOCUS_EVENT_MASK: " + e);
}
}, AWTEvent.FOCUS_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("HIERARCHY_BOUNDS_EVENT_MASK: " + e);
}
}, AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("HIERARCHY_EVENT_MASK: " + e);
}
}, AWTEvent.HIERARCHY_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("INPUT_METHOD_EVENT_MASK: " + e);
}
}, AWTEvent.INPUT_METHOD_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("INVOCATION_EVENT_MASK: " + e);
}
}, AWTEvent.INVOCATION_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("ITEM_EVENT_MASK: " + e);
}
}, AWTEvent.ITEM_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("KEY_EVENT_MASK: " + e);
}
}, AWTEvent.KEY_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("MOUSE_EVENT_MASK: " + e);
}
}, AWTEvent.MOUSE_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("MOUSE_MOTION_EVENT_MASK: " + e);
}
}, AWTEvent.MOUSE_MOTION_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("MOUSE_WHEEL_EVENT_MASK: " + e);
}
}, AWTEvent.MOUSE_WHEEL_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
//outputEventNumber();
//System.out.println("PAINT_EVENT_MASK: " + e);
}
}, AWTEvent.PAINT_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
//outputEventNumber();
//System.out.println("RESERVED_ID_MAX: " + e);
}
}, AWTEvent.RESERVED_ID_MAX);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("TEXT_EVENT_MASK: " + e);
}
}, AWTEvent.TEXT_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("WINDOW_EVENT_MASK: " + e);
}
}, AWTEvent.WINDOW_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("WINDOW_FOCUS_EVENT_MASK: " + e);
}
}, AWTEvent.WINDOW_FOCUS_EVENT_MASK);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
outputEventNumber();
System.out.println("WINDOW_STATE_EVENT_MASK: " + e);
}