Tell Jlist how to stretch any JComponent ( Jlist , Jlist , JTable ) how the JFrame stretched by default (the size changes).

    1 answer 1

    The implementation methods depend on the used Layout and the desired result.

    For example, turning on a variable width and height when using GroupLayout will cause the control to resize to fit the size of the parent container.

    If you need to repeat the behavior of JFrame , install JFrame from the parent container. Then the control will not only change the width and height with it, but will fully occupy its entire space.