this.styles = styles; this.cols = cols; this.rows = rows;
	public TextAreaPainter(JEditTextArea textArea, int cols, int rows)	{		this.textArea = textArea;		this.styles = styles;		this.cols = cols;		this.rows = rows;		currentLine = new Segment();		currentLineIndex = -1;		firstInvalid = lastInvalid = -1;		setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));		setFont(new Font("Monospaced",Font.PLAIN,14));		setForeground(Color.black);		setBackground(Color.white);		setStyles(SyntaxUtilities.getDefaultSyntaxStyles());		setCaretColor(Color.red);		setSelectionColor(new Color(0xccccff));		setLineHighlightColor(new Color(0xe0e0e0));		setLineHighlightEnabled(true);		setBracketHighlightColor(new Color(0x009999));		setBracketHighlightEnabled(true);		setEOLMarkerColor(new Color(0x009999));		setEOLMarkerEnabled(true);	}