空的Netbeans 7调色板?如何还原呢? [英] Empty Netbeans 7 palette? How to restore it?

查看:155
本文介绍了空的Netbeans 7调色板?如何还原呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Kubuntu 12.04上使用Netbeans 7.我是这样启动Netbeans的:

I use Netbeans 7 on Kubuntu 12.04. I start Netbeans like this:

netbeans --cp:a /usr/share/java/xercesImpl.jar & 

由于Netbeans和Kubuntu 12.04的已知问题.在我的项目中间,带有Swing组件的调色板消失了!

cause of known issue with Netbeans and Kubuntu 12.04. In the middle of my project my palette with Swing components just .. disappeared!

我只看到这样的东西:

如何还原默认的Netbeans调色板?

How to restore default Netbeans palette?

我检查了Ctrl + Shift + 8快捷键,但没有结果-问题仍然相同.

** 我不知道自己做了什么,但是现在我看到的只有空调色板:(:**

** I dont know what I did but now I see ONLY EMPTY palette :( : **

我也尝试过:

1)我将其CD到/home/mazix/.netbeans/7.0/config/Windows2Local/Groups/commonpalette ,我只看到了以下内容:CommonPalette.wstcgrp

1) I cd'ed to /home/mazix/.netbeans/7.0/config/Windows2Local/Groups/commonpalette , ls'ed and saw only this: CommonPalette.wstcgrp

2)安装到/home/mazix/.netbeans/7.0/config/Windows2Local/Components并看到了:

2) cd'ed to /home/mazix/.netbeans/7.0/config/Windows2Local/Components and saw this:

AnalyzerTopComponent.settings output.settings AnalyzeStackTopComponent.settings projectTabLogical_tc.settings breakpointsView.settings projectTab_tc.settings CallHierarchyTopComponent.settings properties_1.settings callstackView.settings properties.settings CommonPalette.settings重构预览设置 ComponentInspector.settings
ReporterResultTopComponent.settings CssPreviewTC.settings
resultsView.settings调试设置.
search-results.settings DeclarationTopComponent.settings
services.settings evaluator.settings
sessionView.settings最喜欢的设置.
sources.settings查找用法.
StyleBuilderTC.settings gsf-testrunner-results.settings
svnversioning.settings hgversioning.settings
同步设置JavadocTopComponent.settings
TaskListTopComponent.settings localsView.settings
TerminalContainerTopComponent.settings MultiView-java#007Cform#007C_1.settings threadView.settings MultiView-java#007Cform#007C_2.settings versioning_output.settings MultiView-java#007Cform#007C_4.settings手表 MultiView-java#007Cform#007C.settings Welcome.settings navigatorTC.settings

AnalyzerTopComponent.settings output.settings AnalyzeStackTopComponent.settings projectTabLogical_tc.settings breakpointsView.settings projectTab_tc.settings CallHierarchyTopComponent.settings properties_1.settings callstackView.settings properties.settings CommonPalette.settings refactoring-preview.settings ComponentInspector.settings
ReporterResultTopComponent.settings CssPreviewTC.settings
resultsView.settings debugging.settings
search-results.settings DeclarationTopComponent.settings
services.settings evaluator.settings
sessionsView.settings favorites.settings
sources.settings find-usages.settings
StyleBuilderTC.settings gsf-testrunner-results.settings
svnversioning.settings hgversioning.settings
synchronize.settings JavadocTopComponent.settings
TaskListTopComponent.settings localsView.settings
TerminalContainerTopComponent.settings MultiView-java#007Cform#007C_1.settings threadsView.settings MultiView-java#007Cform#007C_2.settings versioning_output.settings MultiView-java#007Cform#007C_4.settings watchesView.settings MultiView-java#007Cform#007C.settings Welcome.settings navigatorTC.settings

并且没有看到任何_hidden文件:(

and didnt see any _hidden files :(

推荐答案

打开NetBeans并选择窗口"->调色板" 它会出现,但将为空,因为您尚未选择GUI类.

Open NetBeans and choose Window -> Palette It will appear but it will be empty because you didn't choose a GUI class yet.

要使用标签等GUI组件填充调色板,请按照以下步骤操作:

To fill the palette with the GUI components like labels, follow these steps:

  1. 创建一个新项目.

  1. Create a new project .

右键单击程序包名称或项目名称,然后选择新建"->其他...".

Right click in the package name or project name, and choose New -> Other...

在新建文件"对话框中,从类别中选择"Swing GUI表单",然后选择"JFrame" 表单文件类型子窗口.单击下一步.

In the New File dialog box, choose the "Swing GUI Forms" from category and the "JFrame" Form file type sub window. Click Next.

输入名称,对您现在创建的新类说"MyGUI".

Enter name lets say "MyGUI" for the new the class which you created now.

调色板"窗口现在充满了标签,文本,复选框等...

The palette window is now full with components like labels, text,checkboxes, ...

如果尚未出现,请确保按GUI类栏"MyGUI"类上方的设计"按钮

if not appear yet make sure to press "Design" button in the upper of the GUI class bar "MyGUI"class

这篇关于空的Netbeans 7调色板?如何还原呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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