Empty Netbeans 7 palette? How to restore it?

╄→гoц情女王★ 提交于 2020-05-15 06:35:04

问题


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

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

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

I see only sth like this:

enter image description here

How to restore default Netbeans palette?

I checked Ctrl+Shift+8 shortcut but with no results - the problem is still the same.

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

enter image description here

I also tried this:

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

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 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

and didnt see any _hidden files :(


回答1:


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

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

  1. Create a new project .

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

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

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

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

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




回答2:


I got the same issue and this work for me window -> reset window. hope it work for you :)




回答3:


I think the same problem occur here.Check this solution.it may helpful to you.

This steps for restore the default palette?

  1. Exit the IDE.
  2. Go to your user directory and go down to config/Palette subdir. In this directory, the files or directories deleted from the default palette content are presented as empty files with _hidden suffix in their names.
  3. Delete these _hidden files to let the palette categories and items appear again in the IDE.

I think this will help you




回答4:


Do one thing, simply right click on your netbeans project and then open it. It resolves the problem. You will observe if u open a new project the palette is there, so just copy the project with a different name, its will solve your problem.




回答5:


In my case after creating a new project without a default constructor, the search box at the palette holds a single character i.e. '='. this results in an empty palette too.

In that case the solution is obvious: just delete the content of the search input. It puzzled me for a moment, though, not noticing the search input field content.




回答6:


I had the same situation with my netbeans. The only solution I did was to backup my project folder (saving it to other drive). Then re-install the netbeans. Afterwards I re-paste the project folder at the directory and re-open it.




回答7:


Right-click mouse button at palette box. Choose command "reset palette".




回答8:


I encountered the same problem. Just check the bottom of the palette to see if there is a search box open. If there is, close it. Then the palette will be available once again.



来源:https://stackoverflow.com/questions/12405491/empty-netbeans-7-palette-how-to-restore-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!