|
|
|
Re: Freezelayer issue [message #1692128 is a reply to message #1692117] |
Mon, 13 April 2015 13:43  |
Eclipse User |
|
|
|
natTable.doCommand(new FreezeColumnCommand(natTable, 1));
But note that this will only work in case the NatTable is rendered because otherwise the dimensions are not yet initialized.
If you need to set an initial freeze state, you might want to register a listener that unregisters automatically after performing the initial freeze:
PaintListener temp = new PaintListener() {
@Override
public void paintControl(PaintEvent e) {
natTable.doCommand(new FreezeColumnCommand(natTable, 1));
natTable.removePaintListener(this);
}
};
natTable.addPaintListener(temp);
Not sure if I showed a different way in the past. Maybe searching the internet helps too.
|
|
|
Powered by
FUDForum. Page generated in 0.02892 seconds