Hi,
i have created a row whith the same index as the column header, but the question is i do not know what i have to implemet to make the lines which divide the cells visible?
Another question, is it possible to create a "multi row header"? I know how to iplement a multi header but not with the row restrictions.
Any idea? Thanks
String[] columnNames = {"0","1","2","3","4","5"};
JList rowHeader = new JList(columnNames);
JTable table = new JTable(cLogical.getWColision(), columnNames);
JScrollPane scroll = new JScrollPane(table);
rowHeader.setFixedCellWidth(50);
rowHeader.setFixedCellHeight(table.getRowHeight() );
rowHeader.setOpaque(true);
rowHeader.setBorder(table.getBorder());
rowHeader.setForeground(table.getForeground());
rowHeader.setBackground(table.getBackground());
rowHeader.setFont(table.getFont());
scroll.setRowHeaderView(rowHeader);
Hi,
i have created a row whith the same index as the
column header, but the question is i do not know what
i have to implemet to make the lines which divide the
cells visible?
Another question, is it possible to create a "multi
row header"? I know how to iplement a multi header
but not with the row restrictions.
Any idea? Thanks
String[] columnNames = {"0","1","2","3","4","5"};
JList rowHeader = new JList(columnNames);
JTable table = new JTable(cLogical.getWColision(),
columnNames);
JScrollPane scroll = new JScrollPane(table);
rowHeader.setFixedCellWidth(50);
rowHeader.setFixedCellHeight(table.getRowHeight()
) );
rowHeader.setOpaque(true);
rowHeader.setBorder(table.getBorder());
rowHeader.setForeground(table.getForeground());
rowHeader.setBackground(table.getBackground());
rowHeader.setFont(table.getFont());
scroll.setRowHeaderView(rowHeader);