Window resize event?
Overriding particular methods of ComponentAdapter
is a convenient alternative to implementing all the methods of ComponentListener
. Several examples seen here illustrate the "convenience for creating listener objects" mentioned in the API.
Implement a ComponentAdapter
with componentResized()
:
frame.addComponentListener(new ComponentAdapter() {
public void componentResized(ComponentEvent componentEvent) {
// do stuff
}
});