Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jTable not scrolling

 
Michael Bell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michael Bell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Incidentally the horizontal scroll bar appears and works ok.
 
Michael Bell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the containers the wrong sizes to fit together - all fine now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic