getDocument().getText(dot,1,lineSegment);
		public void paint(Graphics g)		{			if(getDot() != getMark() ||				!SyntaxCaret.this.isVisible())				return;			try			{				int dot = getDot();				getDocument().getText(dot,1,lineSegment);				Rectangle r = modelToView(dot);				width = g.getFontMetrics().charWidth('m');				r.width = block ? width - 1 : 0;				width += 2;				g.setColor(getCaretColor());				g.drawRect(r.x,r.y,r.width,r.height - 1);			}			catch(BadLocationException bl)			{				System.out.println("Caret fuckup:");				bl.printStackTrace();			}		}