是否有适用于 Java 的 WYSIWYG 编辑器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4747387/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a WYSIWYG editor available for Java?
提问by MYE
Possible Duplicate:
WYSIWYG text editor in Java
可能的重复:
Java 中的 WYSIWYG 文本编辑器
I was looking for a tool or API that provides a WYSIWYG editor within a Java Desktop Application.
我一直在寻找在 Java 桌面应用程序中提供 WYSIWYG 编辑器的工具或 API。
Could anyone provide me with a link or document about creating or installing a WYSIWYG editor within a Java Desktop Application.
任何人都可以向我提供有关在 Java 桌面应用程序中创建或安装 WYSIWYG 编辑器的链接或文档。
This look like
这看起来像
NiceEditor use for web but i need use for desktop application
NiceEditor 用于网络,但我需要用于桌面应用程序
Thank you!
谢谢!
回答by arooaroo
It's not entirely clear from your question: are you asking for existing code editor components which can be easily embedded within a Swing application?
您的问题并不完全清楚:您是否要求现有的代码编辑器组件可以轻松嵌入到 Swing 应用程序中?
If so, you will be able to find a few open source components. I've personally used RSyntaxTextArea; the jEdit project has a spin-off component, although I seem to recall it not being maintained as actively as its parent project. JIDE also have the JIDE Editorcomponent.
如果是这样,您将能够找到一些开源组件。我个人使用过RSyntaxTextArea;jEdit 项目有一个衍生组件,虽然我似乎记得它不像它的父项目那样被积极维护。JIDE 也有JIDE 编辑器组件。
回答by trashgod
I would recommend jEditas an embedded editor, but I'm not aware of any particular support for a Java Desktop Applicationcreated using the Swing Application Framework (JSR 296). As an alternative, consider The NetBeans Platform.
我会推荐jEdit作为嵌入式编辑器,但我不知道对使用Swing 应用程序框架 (JSR 296)创建的Java 桌面应用程序有任何特定支持。作为替代方案,请考虑NetBeans 平台。
回答by Marcos Vasconcelos
For eclipse, you can isntall the Visual Editor plugin.
对于 Eclipse,您可以安装 Visual Editor 插件。
There's still the JGoodieForms, but I prefer write forms in hand using MigLayout.
仍然有 JGoodieForms,但我更喜欢使用 MigLayout 手写表单。