在NetBeansUpdate之后无法编辑JFrame表单 [英] Can't Edit JFrame Form after NetBeansUpdate

查看:204
本文介绍了在NetBeansUpdate之后无法编辑JFrame表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我一直在使用内置的GUI编辑器在NetBeans中开展一个项目。之前我注意到它生成了一个XML.form文件,该文件没有出现在Project Explorer窗格中,这是有意义的。之前我在设计选项卡中处理表单时,它通知了我有关15个更新的信息。我刚刚更新,没有阅读任何可能是一个坏主意但是当我重新启动IDE时,它在Project Explorer中单独显示我的GUI.class文件和.form文件,我无法在Source和设计。我还注意到,通常不可编辑的生成代码现在可以编辑。

Lately, I've been working on a project in NetBeans using the GUI editor that's built in. Before I noticed that it generated an XML ".form" file that didn't appear in the Project Explorer Pane which makes sense. Earlier I was working on the form in the "Design" tab when it notified me about 15 updates. I just updated without reading anything which was probably a bad idea but when I restarted the IDE, it showed my GUI ".class" file and ".form" file separately in the Project Explorer and I couldn't switch between "Source" and "Design". I also noticed that the generated code that was usually not editable was now editable.

P.S。我能够很好地创建一个新的框架,设计编辑器仍可以使用新框架

P.S. I'm able to create a new frame just fine and the design editor still works with new frame

推荐答案

我遇到过相同的问题问题,我已经解决了。

I have encounter the same problem and I have solved it.

我认为,这个问题的关键是Netbeans中JFrame的特定插件在更新后没有活动,所以我们只需要激活它们。实现此目的的最简单方法是创建一个新的JFrame类,因此在此过程中,NetBeans可以为我们激活所有相关的插件。最后,重新启动NetBeans,然后一切都会好的。

The key in this problem, I think, is particular plugins for JFrame in Netbeans are not active after updating, so we only need to activate them. The easiest way to achieve this is create a new JFrame class, so in this progress, NetBeans can activate all relevant plugins for us. Finally, restart NetBeans, then everything would be fine.

非常感谢大家在这种情况下给我一些想法和线索:)

Thank you very much for all of you that you give me some idea and clues in this situation:)

这篇关于在NetBeansUpdate之后无法编辑JFrame表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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