Java Netbeans - 设计视图不可用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29733020/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 08:31:31  来源:igfitidea点击:

Netbeans - Design view not available

javaweb-servicesnetbeans

提问by hjalpmig

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; also if i go to view > editors they are the only two options. I have come across this question:

我正在学习使用 SOAP Web 服务的教程,为此我必须使用设计视图编辑我的文件 WelcomeSOAP.java,但是设计视图不可用,只有“源”和“历史”视图位于顶部的栏上; 此外,如果我去查看> 编辑他们是唯一的两个选项。我遇到过这个问题:

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. Does anyone know how to enable design view?

但是,我的笔记本电脑和计算机都运行 netbeans 7.4,并且我的桌面上可以使用设计视图,但我也需要能够在我的笔记本电脑上使用它。有谁知道如何启用设计视图?

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,这两种方法对我都不起作用。

采纳答案by ntech_Cham

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 试过瘦)

回答by adsfg

Hmm.. It might be because you're not using the latest version of NetBeans (I had the same issue). Get NetBeans 8.0.2 and reinstall the GUI plugin. it should work then.

嗯.. 可能是因为您没有使用最新版本的 NetBeans(我遇到了同样的问题)。获取 NetBeans 8.0.2 并重新安装 GUI 插件。它应该工作。

回答by adsfg

Alright i've found the answer. When you are in your source package, right click and there should be options for "forms"

好吧,我找到了答案。当您在源包中时,右键单击,应该有“表单”选项

回答by Lasitha Yapa

You have to install the plugin named web services. You can find it in this path and search for it there in the search box in top right corner.

您必须安装名为 Web 服务的插件。您可以在此路径中找到它并在右上角的搜索框中搜索它。

tools->plugins->available plugins

工具->插件->可用插件

回答by tury_nguyen

Tools->Plugins->Available plugins, search for 'web service' if you need Then check: RESTFUL Web Service, SOAP Web Service. It works for me

Tools->Plugins->Available plugins,如果需要,搜索“web service”然后检查:RESTFUL Web Service、SOAP Web Service。这个对我有用

回答by tenouk

search for 'web service' and make sure that 'Java Web and EE' is active

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

回答by Gil Nz

Tools->Plugins->Available plugins, search for 'GUI' if you need Then check: Spring framework for Java SE. It works for me on NetBeans 8.0.2

工具->插件->可用插件,如果需要,搜索“GUI”然后检查:Java SE 的 Spring 框架。它适用于 NetBeans 8.0.2

回答by Barani r

Error : "Design view cannot be rendered."

错误:“无法呈现设计视图。”

Below procedure worked for me:

以下程序对我有用:

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

回答by RISHABH KUMAR

In the Menu Bar Go to - View > (Check) Show Editor Toolbar Done.

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

回答by Nishit Patel

Make sure you have not deleted the ".Form" file (Thats's what I did while rearranging everything). It is the file that lets you edit the form in netbeans. I couldn't find how to recover.

确保您没有删除“.Form”文件(这就是我在重新排列所有内容时所做的)。它是允许您在 netbeans 中编辑表单的文件。我找不到如何恢复。