aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes jTable not scrolling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jTable not scrolling" Watch "jTable not scrolling" New topic
Author

jTable not scrolling

Michael Bell
Greenhorn

Joined: Dec 05, 2005
Posts: 19
I have a jTabbedPane. Inside one tab is a panel containing two jScrollpanes each containing a jTable. The jTables will not scroll and will only show a default 4 rows. Is there something inherently incorrect about this or should I be able to get it to work? Uing Netbeans 5 IDE.
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
There's nothing inherently wrong with it
as you describe, but it's hard to go much
further without seeing the actual layout
code.

Are you sure the JScrollPanes are there?
Can you see the table headers? Are you
sure the tables actually have more than
four rows? Did you write the code or did
NetBeans? Enquiring minds want to know.


bitguru blog
Michael Bell
Greenhorn

Joined: Dec 05, 2005
Posts: 19
Thanks.

Well when it comes down to it I am not sure of anything anymore what with global warming and yet the threat of cooling and tundra for the UK. I never did want to live in Labrador.

The GIU part was done in Netbeans and the database JDBC added by hand.
Yes more than 4 rows, the Scrollpanes appear to be there. I can post you the code.
Michael Bell
Greenhorn

Joined: Dec 05, 2005
Posts: 19
Incidentally the horizontal scroll bar appears and works ok.
Michael Bell
Greenhorn

Joined: Dec 05, 2005
Posts: 19
I had the containers the wrong sizes to fit together - all fine now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jTable not scrolling