Hi
I'm using a JideTable with PageNavigationBar:
tblNews.setModel(tableModelNews);
.....
tblNews.getColumnModel().getColumn(1).setCellRenderer(new ButtonCellRender());
tblNews.getColumnModel().removeColumn(tblNews.getColumnModel().getColumn(0));
PageNavigationBar navigationBar = new PageNavigationBar(tblNews);
this.add(navigationBar,BorderLayout.SOUTH);
scroll.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener() {
public void adjustmentValueChanged(AdjustmentEvent e) {
tblNews.setCellContentVisible(!e.getValueIsAdjusting());
}
});
scroll.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
int rowCount = scroll.getViewport().getHeight() / tblNews.getRowHeight();
PageNavigationSupport pageNavigationSupport = (PageNavigationSupport) TableModelWrapperUtils.getActualTableModel(tblNews.getModel(), PageNavigationSupport.class);
if (pageNavigationSupport != null) {
pageNavigationSupport.setPageSize(rowCount);
}
}
});
I'm using a custom CellRendes and i want to remove a column too.
but when i run the application, it doesn't show my custom cellRender and doesn´t remove the column. Is there a trick to do this or it's a bug?
Thanks