rowHeaderLayer, cornerLayer);
// register a CopyDataCommandHandler that also copies the headers and
// uses
// the configured IDisplayConverters
CopyDataCommandHandler copyHandler = new CopyDataCommandHandler(
selectionLayer, columnHeaderDataLayer, rowHeaderDataLayer);
copyHandler.setCopyFormattedText(true);
gridLayer.registerCommandHandler(copyHandler);
final NatTable natTable = new NatTable(gridPanel, gridLayer);
GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);