Miglayout has bug? JPanel doens’t grow

Miglayout has bug? JPanel doens’t grow

2014/04/26 Programming 1

Miglayout has bug? JPanel doens’t grow, but for JButton or JTextField, they can.

miglayout bug

miglayout bug

read count : 359

One Response

  1. admin says:

    I finally got a solution. Override getMaximumSize in your JPanel class and return a huge dimension.

    @Override
    public Dimension getMaximumSize() {
    return new Dimension(10000, 1000);
    }

Leave a Reply

Your email address will not be published. Required fields are marked *