Mendeteksi pendengar perubahan ukuran jpanel

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