Question

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

Was it helpful?

Solution

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

OTHER TIPS

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

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

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.

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.

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.

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

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top