Java text highliting
I did a code in java for file comparison. This compares two file contents and give开发者_开发问答s a result like : modified line and deleted lines and blank lines. I want them to highlight with different color. (Same as a file compare software does).
Thanks in advance.
Nitin
Use a JTextPane
it supports attributed text which means you can change font, colour, etc.
精彩评论