Composite tableContainer = new Composite(parent, SWT.NONE);
tableContainer.setLayout(new GridLayout(6, true));
GridDataFactory.fillDefaults().grab(true, true).applyTo(tableContainer);
createNatTable(tableContainer, new GradientBackgroundPainter(
new TextPainter(false, false, false), true));
createNatTable(tableContainer, new TextPainter(true, true, false));
createNatTable(tableContainer, new TextPainter(false, true, true));
createNatTable(tableContainer, new TextPainter(true, true, true));
createNatTable(tableContainer, new TextPainter(true, true, 5, true));
createNatTable(tableContainer, new PaddingDecorator(new TextPainter(
true, true, 5, true), 5));
createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
false, true, false));
createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
true, true, false));
createVerticalHeaderNatTable(tableContainer,
new GradientBackgroundPainter(new VerticalTextPainter(false,
false, true)));
createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
true, true, true));
createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
true, true, 5, true));