@Override
	public void paint(Graphics g) {
		// TODO Auto-generated method stub
		super.paint(g);
		Element root = mDocument.getDefaultRootElement(); 
		//System.out.println("Element-> count:"+root.getElementCount()+" name:"+root.getName());
		//к
		int line = root.getElementIndex(mDocument.getLength());
		//ɫ
		g.setColor(Color.LIGHT_GRAY);
		//ұֱ
		g.drawLine(30, 0, 30, getHeight());
		//кŵɫ
		g.setColor(new Color(88,178,196));
		
		//ÿлһк
		int ascent,height;
		ascent=this.getFontMetrics(this.getFont()).getAscent();
		height=this.getFontMetrics(this.getFont()).getHeight();
		g.drawString("    "+String.valueOf(1), 3, ascent );
		for (int count = 1, j = 2; count <= line; count++, j++) {
			//ַұ
			String num=String.valueOf(j);
			if(num.length()==1){
				num="    "+num;
			}else if(num.length()==2){
				num="  "+num;
			}
			g.drawString(num, 3,ascent+count*height);
		}
	}