}
                public Shape paintLayer(Graphics g, int offs0, int offs1,		    Shape bounds, JTextComponent c, View view) {                    try {                        Shape extent = view.modelToView(offs0, Position.Bias.Forward, offs1, Position.Bias.Backward, bounds);                        Rectangle rect = extent.getBounds();                        rect.x = 0;                        rect.width = bounds.getBounds().width;                        g.setColor(getColor());                        g.fillRect(rect.x, rect.y, rect.width, rect.height);                        return rect;                    } catch (BadLocationException e) {                        return null;                    }                }