aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTable Display Problem 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 Display Problem" Watch "JTable Display Problem" New topic
Author

JTable Display Problem

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
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
Anand Karia
Ranch Hand

Joined: Sep 25, 2004
Posts: 156

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.


Love is GOD and GOD is Love.
Anand Karia
IT Concretor.......
M/s. Anand Karia Concreting IT
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable Display Problem