在 NetBeans 中,是否可以重新附加 .form 和 .java 文件?

发布于 2024-08-07 00:53:14 字数 280 浏览 2 评论 0原文

不知何故,使用 NetBeans GUI 编辑器构建的 GUI 的 .form 文件和 .java 文件变得分离,现在在我的项目中显示为两个单独的文件。我不确定为什么会发生这种情况或如何纠正它,但在纠正之前,我无法使用 GUI 编辑器来编辑文件。

我已经尝试过关闭并重新打开该项目,但这没有用。我还尝试删除项目(但不是源文件)并重新导入它,但这也不起作用。

其他人也发生过这种情况吗?什么可能导致此问题(以便我将来可以避免它)以及我可以采取哪些措施来纠正此问题?

Somehow, my .form files and .java files for my GUIs built with the NetBeans GUI editor became detached and now appear in my project as two separate files. I'm not sure why this happened or how to correct it, but until it is corrected, I am not able to use the GUI editor to edit the files.

I've already tried closing and reopening the project, but that did not work. I also tried deleting the project (but not the source files) and reimporting it, and that too did not work.

Has this happened to anyone else? What could cause this (so I can avoid it in the future) and what can I do to correct this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诗酒趁年少 2024-08-14 00:53:14

我不知道是什么导致了这个问题,但我可以通过关闭项目、关闭 NetBeans、删除所有 NetBeans 项目文件,然后将代码重新导入为项目来修复它。看来一切又回到了原来的样子。

I don't know what caused this problem, but I was able to fix it by closing the project, closing NetBeans, deleting all of the NetBeans project files, and then reimporting the code as a project. It appears everything is back to the way it was.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文