JList with a height as a number of elements

Is it possible to have a JList showing say 5 elements rather than a specific height in pixels?The effect I am trying to achieve is something like a <select size="5"> in html.I'm wrapping the list in a JScrollPane for a vertical scroll bar showing if needed.
[285 byte] By [Ghelyara] at [2007-11-26 22:17:44]
# 1
It's just sitting there in the API... :o)list.setVisibleRowCount(5);
itchyscratchya at 2007-7-10 11:12:03 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks, don't know how I missed that ;-)
Ghelyara at 2007-7-10 11:12:03 > top of Java-index,Desktop,Core GUI APIs...