开发者

Java text highliting

开发者 https://www.devze.com 2023-01-17 02:32 出处:网络
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 differe

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消