This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
new MyListener().add();
}
private static class MyListener implements java.awt.event.AWTEventListener {
public MyListener() {
public void add() {
Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.HIERARCHY_EVENT_MASK);
public void remove() {
Toolkit.getDefaultToolkit().removeAWTEventListener(this);
public void eventDispatched(AWTEvent event) {