You have to use componentResized
from ComponentListener.
Valentin Rocher
2010-02-20 19:13:03
Implement a ComponentListener
with componentResized()
:
frame.addComponentListener(new ComponentListener {
public void componentResized(ComponentEvent e) {
// do stuff
}
});
(off the top of my head, consider pseudo-code)
Overriding particular methods of ComponentAdapter
is a convenient alternative to implementing all the methods of ComponentListener
.