yes there is. you will have to add a componentlistener to your frame:
Code:
frame.addComponentListener(
new ComponentListener(){
public void componentResized(ComponentEvent e){
System.out.println("*FRAME: component resized");
Dimension size = frame.getSize();
doSomething();
}
public void componentMoved(ComponentEvent e) {
System.out.println("*FRAME: component moved");
Point location = frame.getLocation();
}
public void componentHidden(ComponentEvent e) {}
public void componentShown(ComponentEvent e) {}
}
);
this will enable you to trace: resizing, moving, hiding and showing of your frame.
Bookmarks