Limited number of headers displayed? [message #498415] |
Mon, 16 November 2009 19:37 |
|
So I have a very wide table -- 3904 columns. I recently noticed that only the first 273 column headers are displayed; the table simply stops drawing them after that, though all table data columns are drawn. (See attached screenshot). I have verified all columns are being added to the viewer and that the columns post-273 have correct titles.
Here's the "add columns" code, it's pretty damn boilerplate:
GC gc = new GC (tvReportData.getTable());
FontMetrics fm = gc.getFontMetrics ();
for (Object f : loanDataSource.getFields())
{
TableViewerColumn tvc=new TableViewerColumn(tvReportData,SWT.NONE);
tvc.getColumn().setText(f.toString());
int width=(f.toString().length()+2)*fm.getAverageCharWidth ();
tvc.getColumn().setWidth(width);
}
I'm not doing anything fancy with renderers, etc. I can't see any "Magic numbers" (i.e, powers of 2) in the number of words, characters, or entries. I'm not even sure where to begin looking, though I guess "known bugs" might be a good place to start. Beyond that, any ideas?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02971 seconds