Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTable Display Problem

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a JTable in an applet. it shows me some data. the table headers also change as per the database table that i select. my application is capable of doing that. my point is that when the number of columns in a table are less (less than 6)then the table displays properly .if it is more than 7 or 8 then the table becomes very small in size and the data is also not shown. i have the scroll bars (vertical and horizontal) but it is not the problem of scrollbars. it is some thing else. please guide me what to do.i can see the names of the columns clumped. i resize the columns to see the column names but the height of the table decreases to such an extent that it becomes impossinle to view the contents of the table even while scrolling. please guide. thank you
 
Ranch Hand
Posts: 158
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Plz be confirmed that u are adding rows after default table. like if you have 7 default rows into JTable then when more then 7 data exists then you must be sure that you are adding rows into JTable.
 
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic