JPanel in a JScrollPane?

Hi,I have a JPanel that can grow in size depending on data results, obviously i can't keep allowing it to get bigger so when it hits a certain length i want scrolling to take over. How do i do this? I've only ever used JTables with JScrollPanes.Thanks.
[275 byte] By [handlebars123a] at [2007-10-2 10:12:53]
# 1
Add the panel to the scrollPane. Add the scrollPane to the GUI. Assuming you are using a LayoutManager, the scrollBars will appear automatically as the panel grows.
camickra at 2007-7-13 1:35:09 > top of Java-index,Desktop,Core GUI APIs...