SelectionLayer selectionLayer = new SelectionLayer(bodyDataLayer);
ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
// add the PrintCommandHandler to the ViewportLayer in order to make
// printing work
viewportLayer.registerCommandHandler(new PrintCommandHandler(
viewportLayer));
final NatTable natTable = new NatTable(gridPanel, viewportLayer, false);
// adding this configuration adds the styles and the painters to use