How to Highlight one line in EditorTextField

Hi , Everyone

I am trying to handle some files (such as xml and json files ) with EditorTextField.

Sometimes , the content in editor is invalid , and I want to highlight the error line , but I can not find any methods and interfaces .

How Can I highlight the error line?:_|:_|:_|

3 comments
Comment actions Permalink

I try to over write the public void paint(Graphics g) method in EditorTextField, and It works.

and Then I find a better way is use HighlightManager to highlight the error line . thx anyway

0
Comment actions Permalink

> .. It works

That's what matters. Well done.

0

Please sign in to leave a comment.