if (ObjectUtils.isNotNull(bgImage)) {
TextPainter txtPainter = new TextPainter(false, false);
ICellPainter cellPainter = new BackgroundImagePainter(txtPainter,
bgImage, GUIHelper.getColor(192, 192, 192));
SortableHeaderTextPainter sortHeaderPainter = new SortableHeaderTextPainter(
cellPainter, false, false);
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
DisplayMode.NORMAL, GridRegion.CORNER);
} else {
SortableHeaderTextPainter sortHeaderPainter = new SortableHeaderTextPainter(
new BeveledBorderDecorator(new TextPainter()), false, false);
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
configRegistry.registerConfigAttribute(