private static void monitorContainers() {
        if (!containerMonitored) {
            Toolkit.getDefaultToolkit().addAWTEventListener(
                    CONTAINER_HANDLER, AWTEvent.CONTAINER_EVENT_MASK);
            containerMonitored = true;
        }
    }