用Java程序提供帮助内容
在 Java 应用程序中提供“帮助内容”的最佳实践是什么?我应该使用“.CHM”文件吗?Linux 操作系统是否内置对“.CHM”文件的支持?我正在考虑如何托管我的项目,并且正在研究 Google 代码项目,这似乎非常适合我的需求,所以我应该将它们重定向到我的 Google 代码项目的支持部分吗?
What is the best practice for providing "Help Contents" in a Java Application. Should I use ".CHM" files, do Linux operating systems have built-in support for ".CHM" files? I was thinking of how I was going to host my project and I was looking into Google Code Projects and that seems perfect for my needs, so should I just redirect them to the support section of my Google Code Project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,基于网络的帮助更可取,因为您可以在应用程序发布后修改/更新它。如果帮助与应用程序捆绑在一起,如果您想更改帮助,则需要重新发布应用程序。
Web based help is preferable in my mind, as you can modify/update it after the application is released. If the help is bundled with the application, you would need to re-release the application if you want to change the help.
就我个人而言,我会选择 JEditorPane 显示HTML 或富文本 (RTF) 内容。应用程序可以通过从 URL 中获取新内容来查找帮助更新,或在出现故障时显示内容的缓存版本。无论如何,您的帮助文件都是干净的、易于维护的,并且符合 Java 的组件(与操作系统无关)。
Personally, I would go for a JEditorPane displaying HTML or rich text (RTF) content. The application could find help updates by fetching new content from a URL, or displaying a cached version of the content in case of failure. In any case, your help files are clean and easily maintainable, and compliant with Java's component (OS independent).