Quantcast
Channel: User Oleg Estekhin - Stack Overflow
Viewing all articles
Browse latest Browse all 47

Answer by Oleg Estekhin for Set only maximum height for a panel (without using setMaximumSize) with GroupLayout

0
0

If you want to limit only one dimension then just do not limit the other:

    component.setMaximumSize( new Dimension(            Integer.MAX_VALUE,            requiredMaxHeight    ) );

Viewing all articles
Browse latest Browse all 47

Latest Images

Trending Articles





Latest Images