netbeans question

How do I make a jlist in netbeans show the scrollbars when the data is to big? I don't know which property to change.
[125 byte] By [SMAlvareza] at [2007-11-26 23:40:45]
# 1

This is a Swing question, not netBeans, right? Netbeans is just am IDE.

JList doesn't have scrollbars. You must wrap a JScollPane around it:

JList listOfMumbles = new JList(...);

JScrollPane scrollingMumbles = new JScrollPane(listOfMumbles);

//add scrollingMumbles to container

DrLaszloJamfa at 2007-7-11 15:07:40 > top of Java-index,Java Essentials,New To Java...