Multiple Scoll in Scoll Pane

I'm trying to build a JScrollPane with both a horizontal and vertical scroll bar. The only thing in the scroll pane is a table + the table is a set size. I need the Scroll Pane to use both horizontal and vertical scroll bars as needed. I'm using NetBeans to design the graphical interface, so I need something that will work with NetBeans. In my experimentation, I've found different commands that would seem to allow both horizontal and vertical scroll bars, but it hasn't worked when I tried it. Also note, I need to use just 1 ScrollPane, not 2 in order to accomplish this.

Thanks for any help you can give me!

Daniel Lorimer

[651 byte] By [dlorimera] at [2007-10-3 4:14:34]
# 1
OK, you've posted your requirements.If you have a specific problem, how about enlightening us all with the codethat is causing the problem (and NOT just a snippet)
Michael_Dunna at 2007-7-14 22:15:56 > top of Java-index,Desktop,Core GUI APIs...
# 2
a) add table to scrollpane (vertical scrolling works by default)b) table.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );
camickra at 2007-7-14 22:15:56 > top of Java-index,Desktop,Core GUI APIs...
# 3
Michael, I can't post example code because I don't have a code problem. . . I don't know how to do it! I'm working with an idea, not with hard code. I need to know how to do it, not how to fix it.
dlorimera at 2007-7-14 22:15:56 > top of Java-index,Desktop,Core GUI APIs...
# 4
camickr, Thank you so much! I didn't know it was that simple! I did what you said and it works great! Thanks so much!DanielP.S. Sorry about the typo in the title, I didn't notice it until now.
dlorimera at 2007-7-14 22:15:56 > top of Java-index,Desktop,Core GUI APIs...