List of usage examples for java.awt.event ComponentEvent getSource
public Object getSource()
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 } }