We help IT Professionals succeed at work.

ancestorListener doesn't capture resize

allelopath
allelopath asked
on
I have a JTable on a JPanel on a JDialog. When the dialog is resized (not moved) I want to resize the table with it. However, ancestorListener doesn't capture resize of the JDialog (only adding, moving and removing). How can I capture the resizing of the dialog?
Comment
Watch Question

Top Expert 2016
Commented:
Try adding a ComponentListener
Top Expert 2016

Commented:
:-)