• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

jTable not scrolling

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Incidentally the horizontal scroll bar appears and works ok.
 
Michael Bell
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the containers the wrong sizes to fit together - all fine now
 
reply
    Bookmark Topic Watch Topic
  • New Topic