Example usage for java.awt.event WindowEvent WindowEvent

List of usage examples for java.awt.event WindowEvent WindowEvent

Introduction

In this page you can find the example usage for java.awt.event WindowEvent WindowEvent.

Prototype

public WindowEvent(Window source, int id, int oldState, int newState) 

Source Link

Document

Constructs a WindowEvent object with the specified previous and new window states.

Usage

From source file:Main.java

protected void processWindowEvent(WindowEvent e) {
    WindowEvent newEvent = new WindowEvent(this, WindowEvent.WINDOW_FIRST, WindowEvent.WINDOW_CLOSED,
            WindowEvent.WINDOW_ACTIVATED);

    super.processWindowEvent(e); // Pass on the event
}