M
McMatt
Hello,
how can the size of a JPanel automatically be calculated?
The panel which is scrollable in the scrollpane has always the height
which I set with setPreferredSize(Dimension). If the components on
that panel need less place it should be smaller so that the scroll
bars can disappear if not necessary. And if the components on that
panel need more space it should be larger so that one can see all of
the stuff when scrolling down.
I hope the description is exact enough.
Thanks for any help in advance.
Matthias
how can the size of a JPanel automatically be calculated?
The panel which is scrollable in the scrollpane has always the height
which I set with setPreferredSize(Dimension). If the components on
that panel need less place it should be smaller so that the scroll
bars can disappear if not necessary. And if the components on that
panel need more space it should be larger so that one can see all of
the stuff when scrolling down.
I hope the description is exact enough.
Thanks for any help in advance.
Matthias