When the last displayable window within the Java virtual machine (VM) is . The possible values, defined in java.awt. For a WINDOW_ACTIVATED or WINDOW_GAINED_FOCUS event, this returns the window that lost activation or the focus .