private Component createFlatComponent(DualViewColumnInfo[] columns) {
ArrayList<ColumnInfo> shownColumns = new ArrayList<ColumnInfo>();
for (int i = 0; i < columns.length; i++) {
DualViewColumnInfo column = columns[i];
if (column.shouldBeShownIsTheTable()) shownColumns.add(column);
}
ListTableModel flatModel = new ListTableModel(shownColumns.toArray(new ColumnInfo[shownColumns.size()]));
myFlatView = new TableView(flatModel) {
public TableCellRenderer getCellRenderer(int row, int column) {