public interface

WindowClosingListener

sun.awt.WindowClosingListener
Known Indirect Subclasses

Class Overview

Interface for listening to WINDOW_CLOSING events before and after they are posted to the queue.

Summary

Public Methods
abstract RuntimeException windowClosingDelivered(WindowEvent event)
Called after a WINDOW_CLOSING event gets posted to the queue.
abstract RuntimeException windowClosingNotify(WindowEvent event)
Called before a WINDOW_CLOSING event gets posted to the queue.

Public Methods

public abstract RuntimeException windowClosingDelivered (WindowEvent event)

Called after a WINDOW_CLOSING event gets posted to the queue.

Parameters
event The WINDOW_CLOSING event that has been posted.
Returns
  • A RuntimeException if the result of this function call needs to interrupt a blocking thread. The exception returned will be thrown from that thread. This function should return null otherwise.

public abstract RuntimeException windowClosingNotify (WindowEvent event)

Called before a WINDOW_CLOSING event gets posted to the queue.

Parameters
event The WINDOW_CLOSING event that will be posted.
Returns
  • A RuntimeException if the result of this function call needs to interrupt a blocking thread. The exception returned will be thrown from that thread. This function should return null otherwise.