how do i add a JTable to a JPanel and have scrolling capability

I have a JPanel on a frame. I want to add a JTable to it, but I want the user to be able to scroll if the data in the table is not entirely visible.How does one do this?
[197 byte] By [rapte] at [2007-9-26 3:11:20]
# 1
You need to add the table to a JScrollPane and add the pane to a frame. Change the properties of the pane to auto scroll and make the table have allignment of center in the pane. I hpoe this helps.Happy Coding
rgegala at 2007-6-29 11:18:41 > top of Java-index,Archived Forums,Java Programming...