简体   繁体   English

Netbeans - 设计视图不可用

[英]Netbeans - Design view not available

I'm following a tutorial on using SOAP web services and for this i must edit my file WelcomeSOAP.java using design view, however design view is not available, only the 'source' and 'history' views are on the bar to the top;我正在学习使用 SOAP Web 服务的教程,为此我必须使用设计视图编辑我的文件 WelcomeSOAP.java,但是设计视图不可用,只有“源”和“历史”视图位于顶部的栏上; also if i go to view > editors they are the only two options.此外,如果我去查看> 编辑他们是唯一的两个选项。 I have come across this question:我遇到过这个问题:

Netbeans design view? Netbeans 设计视图?

However, both my laptop and computer are running netbeans 7.4 and the design view is available on my desktop, but I need to be able to use it on my laptop too.但是,我的笔记本电脑和计算机都运行 netbeans 7.4,并且我的桌面上可以使用设计视图,但我也需要能够在我的笔记本电脑上使用它。 Does anyone know how to enable design view?有谁知道如何启用设计视图?

EDIT:编辑:

I have tried deactivating and reactivating the GUI plugin, and also re-installed netbeans, both of which did not work for me.我试过停用和重新激活 GUI 插件,并重新安装了 netbeans,这两种方法对我都不起作用。

Tools->Plugins->Available plugins, search for 'GUI' if you need Then check: Spring framework for Java SE.工具->插件->可用插件,如果需要,搜索“GUI”然后检查:Java SE 的 Spring 框架。 It works for me on NetBeans 8.0.2它适用于 NetBeans 8.0.2

在菜单栏中转到 - 查看 >(选中)显示编辑器工具栏完成。

Alright i've found the answer.好吧,我找到了答案。 When you are in your source package, right click and there should be options for "forms"当您在源包中时,右键单击,应该有“表单”选项

搜索“web service”并确保“Java Web and EE”处于活动状态

Hmm.. It might be because you're not using the latest version of NetBeans (I had the same issue).嗯.. 可能是因为您没有使用最新版本的 NetBeans(我遇到了同样的问题)。 Get NetBeans 8.0.2 and reinstall the GUI plugin.获取 NetBeans 8.0.2 并重新安装 GUI 插件。 it should work then.它应该工作。

You have to install the plugin named web services.您必须安装名为 Web 服务的插件。 You can find it in this path and search for it there in the search box in top right corner.您可以在此路径中找到它并在右上角的搜索框中搜索它。

tools->plugins->available plugins工具->插件->可用插件

Tools->Plugins->Available plugins, search for 'web service' if you need Then check: RESTFUL Web Service, SOAP Web Service. Tools->Plugins->Available plugins,如果需要,搜索“web service”然后检查:RESTFUL Web Service、SOAP Web Service。 It works for me这个对我有用

Open Java Application, then right click on "Source Packages" - "New" - "Other" - (Categories) "Swing GUI Form" - (File Type) "JApplet Form"打开Java Application,然后右击“Source Packages”——“New”——“Other”——(Categories)“Swing GUI Form”——(文件类型)“JApplet Form”

Job Done.......任务完成.......

(I tried thin with 8.0.2) (我用 8.0.2 试过瘦)

Error : "Design view cannot be rendered."错误:“无法呈现设计视图。”

Below procedure worked for me:以下程序对我有用:

  • Close the file that has the design view (Web Services folder -> YourService)关闭具有设计视图的文件(Web 服务文件夹 -> YourService)
  • Close the netbeans关闭网络豆
  • Open Netbeans打开 Netbeans
  • Open the file again再次打开文件

Make sure you have not deleted the ".Form" file (Thats's what I did while rearranging everything).确保您没有删除“.Form”文件(这就是我在重新排列所有内容时所做的)。 It is the file that lets you edit the form in netbeans.它是允许您在 netbeans 中编辑表单的文件。 I couldn't find how to recover.我找不到如何恢复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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