Example usage for java.awt.event ComponentEvent getSource

List of usage examples for java.awt.event ComponentEvent getSource

Introduction

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

Prototype

public Object getSource() 

Source Link

Document

The object on which the Event initially occurred.

Usage

From source file:org.trianacode.gui.hci.ApplicationFrame.java

public void componentMoved(ComponentEvent event) {
    if (event.getSource() == this) {
        Env.setWindowPosition(getLocation());
    }//from  w  w  w  . j a v a  2  s .  c  o  m
}

From source file:org.trianacode.gui.hci.ApplicationFrame.java

public void componentResized(ComponentEvent event) {
    if (event.getSource() == this) {
        Env.setWindowSize(getSize());//from  w  w w.j av  a 2  s .  c  o  m
    }
}