Example usage for java.awt Container dispatchEvent

List of usage examples for java.awt Container dispatchEvent

Introduction

In this page you can find the example usage for java.awt Container dispatchEvent.

Prototype

boolean dispatchEvent(AWTEvent e) 

Source Link

Document

Dispatches an event to a sub-component if necessary, and returns whether or not the event was forwarded to a sub-component.

Usage

From source file:com.igormaznitsa.mindmap.swing.panel.MindMapPanel.java

private void sendToParent(final AWTEvent evt) {
    final Container parent = this.getParent();
    if (parent != null) {
        parent.dispatchEvent(evt);
    }//from w w  w.  j a  v  a  2  s.  c  om
}