Обнаружение jpanel reaze mange uliderer

public class ClassName extends JFrame implements ComponentListener {
    @Override
    public void componentResized(ComponentEvent e) {
       //set your code here
	}
}
Helpless Hawk