Skip to content
Discussion options

You must be logged in to vote

And IIRC you are using the FreezeColumnCommand with an incorrect position. You are using the SelectionLayer as reference for the position. But the command is handled in the CompositeFreezeLayer. So it might fail because of the position transformation.
Additionally if you want to programmatically freeze a column on startup, you need to do this using a PaintListener. Before the initial paint the width of the freeze layers in the CompositeFreezeLayer are 0 and therefore the command is not processed. For initial programmatic freeze, use a snippet like this:

natTable.addPaintListener(new PaintListener() {

    @Override
    public void paintControl(PaintEvent e) {
        natTable.doCommand(new 

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CubeDepth
Comment options

Answer selected by CubeDepth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants