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?:_|:_|:_|

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

Comment actions Permalink

> .. It works

That's what matters. Well done.


Please sign in to leave a comment.