Hi,
I have a JList which is inside a JScrollPane (which is in a hbox which
is in a vbox):
http://i.math.drexel.edu/~pg/scroll.png
If the single entry in the list happens to be too long, scrollbars show
up and obscure the view. Is there a way to make Swing calculate that
this will happen and make it allocate more space?
Thank you very much!
Aaron Fude
NeoGeoSNK - 14 Nov 2006 02:13 GMT
"aaronfude@gmail.com 写道:
"
> Hi,
>
[quoted text clipped - 10 lines]
>
> Aaron Fude
Hello,
Try JList.setVisibleRowCount(int visibleRowCount) to set the preferred
number of rows.
I hope this useful ^ ^"
Bs!
NeoGeoSNK