is there a way to auto resize a display that is attached to a JFrame, when
the JFrame is resized?

I want the display with the same size of the frame when its size is updated.

Thanks
-- Daniel