JTextArea JLabel比较两个txt.文件逐行 [英] JTextArea JLabel compare two txt. files line by line

查看:95
本文介绍了JTextArea JLabel比较两个txt.文件逐行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家.通过在同一区域显示,我已经完成了两个txt文件的代码.

everybody. I have completed my code two txt files by showing on the same area.

但是我想逐行比较两个txt文件.我想用彩色线条来显示差异,最后,我要用粗体显示不同的字母或单词.

but I want to compare two txt files line by line. and I want to show the differences with Colored lines and finally, The letter or words that are different, different line I'm going to bold.

我如何开始?

现在,我的代码在这里.

thanks for now, my code is here.

推荐答案

JTextArea可能会提供合适的视图,但是您仍然需要对差异进行建模.我将查看 Eclipse svnview .

JTextArea might make a suitable view, but you still need to model the differences. I'd look at the Eclipse or NetBeans platforms, or perhaps svnview.

这篇关于JTextArea JLabel比较两个txt.文件逐行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆