g.fillRect(rect.x + bracket.x,rect.y + bracket.y,
g.fillRect(bracket.x,bracket.y,
		public void paint(Graphics g, int p0, int p1, Shape bounds,			JTextComponent textComponent)		{			if(getSelectionStart() != getSelectionEnd()				|| !bracketHighlight)				return;			if(p0 == p1)				return;			Rectangle rect = (Rectangle)bounds;			Rectangle bracket;			Document doc = getDocument();			FontMetrics metrics = g.getFontMetrics();			try			{				bracket = modelToView(p0);				doc.getText(p0,1,lineSegment);				bracket.width += metrics.charWidth(lineSegment					.array[lineSegment.offset]);			}			catch(BadLocationException bl)			{				bl.printStackTrace();				return;			}			g.setColor(bracketHighlightColor);			g.fillRect(rect.x + bracket.x,rect.y + bracket.y,				bracket.width,bracket.height);		}