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);
styles = defaults.styles; cols = defaults.cols; rows = defaults.rows; caretColor = defaults.caretColor; selectionColor = defaults.selectionColor; lineHighlightColor = defaults.lineHighlightColor; lineHighlight = defaults.lineHighlight; bracketHighlightColor = defaults.bracketHighlightColor; bracketHighlight = defaults.bracketHighlight; eolMarkerColor = defaults.eolMarkerColor; eolMarkers = defaults.eolMarkers;
	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);	}