ToolTipManager.sharedInstance().registerComponent(this);
	public TextAreaPainter(JEditTextArea textArea, TextAreaDefaults defaults)	{		this.textArea = textArea;		setAutoscrolls(true);		setDoubleBuffered(true);		setOpaque(true);		currentLine = new Segment();		currentLineIndex = -1;		setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));		setFont(new Font("Monospaced",Font.PLAIN,14));		setForeground(Color.black);		setBackground(Color.white);		blockCaret = defaults.blockCaret;		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;	}