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, Window opposite, int oldState, int newState) 

Source Link

Document

Constructs a WindowEvent object.

Usage

From source file:Main.java

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

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