Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ListView - Don't display empty unselectable rows.

cshJan 26 2012 — edited Jan 26 2012
Hallo,

Can I limit the number of rows in the list view, to the number of actual items?

If I only have 3 items in my list, the listview still displays a bunch more than that, ... empty unselectable rows. I don't want them. And I want the max height to fit the number of rows.

Thx!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2012
Added on Jan 26 2012
5 comments
1,811 views