Java:用于显示差异的GUI组件? [英] Java: GUI component for displaying diffs?

查看:72
本文介绍了Java:用于显示差异的GUI组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,需要在其中生成差异并显示结果。是否有GUI组件可以轻松完成此任务,或者我需要为自己修改一些东西?

I'm writing a programm in which I need to generate a diff and display the result. Is there any GUI component out there, with which I can easily accomplish this task, or do I need to hack something for myself?

我更喜欢使用Swing组件,但任何其他技术也可以。

I'd prefer using a Swing component, but any other technology will be fine, too.

推荐答案

有一个差异工具如果在NetBeans平台上构建,则可用。

There is a diff tool available if you are building on the NetBeans platform.

如果不能使用它,我认为创建一个在 JEditorPane 中使用HTML来显示结果的基本代码并不困难。

If you can't use that, I don't think it would be difficult to create a basic one that uses HTML in a JEditorPane to display the results.

这篇关于Java:用于显示差异的GUI组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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