@Override
        public void paintControl(PaintEvent event)
        {
            event.gc.setForeground(HexEditThemeSettings.instance.cellHeaderBackground);
            int lineWidth = 1;
            int charLen = 1;
            int rightHalfWidth = 0;  // is 1, but better to tread on leftmost char pixel than rightmost one
            if (hexContent) {
                lineWidth = fontCharWidth;
                charLen = 3;
                rightHalfWidth = (lineWidth + 1) / 2;  // line spans to both sides of its position
            }
            event.gc.setLineWidth(lineWidth);
            for (int block = defWidth; block <= bytesPerLine; block += defWidth) {
                int xPos = (charLen * block) * fontCharWidth - rightHalfWidth;
                event.gc.drawLine(xPos, event.y, xPos, event.y + event.height);
            }
        }
Converts a hex String to byte[]. Will convert full bytes only, odd number of hex characters will
have a leading '0' added. Big endian.

@param hexString an hex string (ie. "0fdA1").
@return the byte[] value of the hex string
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/HexEditControl.java