简体   繁体   中英

Design view in Netbeans won't load

I started to learn swing and downloaded netbeans to work through the tutorials. Unfortunately, when I create a JFrame design view hangs instead of loading and the Navigator and Inspector panes just show up empty.

System details:  
Linux Mint Maya
Netbeans version 7.0.1  
java 1.6.0_24

Any ideas would be greatly appreciated.

在您选择的任何编辑器/设计器中,请考虑此处显示的方法,其中手动创建顶级容器并在设计器中维护一个或多个内容面板。

查看 Netbeans View 菜单并选择“IDE log”那里可能有错误消息/异常,这可能会给你一个线索。

Reinstalling the nb-javac plugin fixed this issue for me.

I followed the steps here and it resolved my problem.

For me, this was caused by a "FormGuardedBlockError", because at one point in my project I copied all of the source out into Notepad++ and used that to replace the .java file, thereby stripping all of the //GEN-BEGIN and related directives.

You can close NetBeans, open the .java file in a plaintext editor and put these directives back by hand, but it may be easier to merge with an earlier version of your code (if you have one).

For more details, check out http://wiki.netbeans.org/FormGuardedBlockError

菜单->视图->显示编辑工具栏为我修复了这个问题,当然您选择编辑的文件必须有jframe,我认为添加到它以显示设计选项卡。

转到菜单 -> 选项 -> 从选项窗口工具中选择“Java”,然后选择“活动”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM