Table doesn't occupy the full width of scrollpane
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   devaki_perumal
Posted On:   Thursday, October 4, 2001 04:31 AM

when i change the Model of A Table(using setModel method) to a newly created DefaultTableCellmodel instance the table does't ocuupy the full width of ScrollPane.How to make it to occupy the full width

Re: Table doesn't occupy the full width of scrollpane

Posted By:   Shai_Almog  
Posted On:   Friday, October 5, 2001 05:00 AM


This is a really annoying feature, you can make the table occupy the full width but then you won't have a scroll bar.


The only workaround I could find was to set the prefered+minimum size of the table to at least the size of the scroll pane. You can play with the width of columns within the table column model as well.

About | Sitemap | Contact