如何在基于 NetBeans 的项目中将 javaDoc 添加到我的 Java 代码中? [英] how to add javaDoc to my Java code in a NetBeans based project?

查看:34
本文介绍了如何在基于 NetBeans 的项目中将 javaDoc 添加到我的 Java 代码中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将 JavaDoc 或其他文档添加到 netbeans 中?
我用这种方式尝试:

How can I add JavaDoc or other document to netbeans ?
I try with this way :

Tools >> Java Platform >> JavaDoc Tab >> JavaDoc.zip (in my desktop) 

但是在编辑器中,当我在工具提示文本中按 Ctrl+Space 时显示此消息:

but in editor when I press Ctrl+Space in tooltiptext this message shown :

未找到 Javadoc.此项目的 Javadoc 文档不存在,或者您尚未在 Java 平台管理器或库管理器中添加指定的 Javadoc.

Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in the Java Platform Manager or the Library Manager.

我尝试重新启动 NetBeans,但结果如下:

I tried restarting NetBeans but this was the result:

推荐答案

在 NetBeans IDE 中试试这个

try this in NetBeans IDE

  1. 从主窗口中选择工具">Java 平台管理器".
  2. 在对话框的左侧面板中选择要添加 Javadoc 的平台.
  3. 在 Javadoc 选项卡中,单击添加 ZIP/文件夹并指定 Javadoc 文件的位置.
  4. 点击关闭.

希望这会有所帮助.

这篇关于如何在基于 NetBeans 的项目中将 javaDoc 添加到我的 Java 代码中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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