This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119029 - Netbeans can't find a bean of the name JPaletteControl
Summary: Netbeans can't find a bean of the name JPaletteControl
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 11:44 UTC by wells
Modified: 2008-01-04 14:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wells 2007-10-16 11:44:36 UTC
When choosing Tools->Palette Manager->Swing/AWT Components, and adding a new component from a project, the window
showing available beans will refuse to show one called 'JPaletteControl'. I renamed the class, and it then showed up,
renamed it back again and it stops being shown. I haven't got another machine or fresh install to repro this on, so I'm
not sure if this is some internal name conflict or a strange one-off occurance.
Comment 1 Jan Pokorsky 2007-10-16 12:52:08 UTC
wrong component, reassigning to form for evaluation
Comment 2 Jan Stola 2007-10-16 13:54:03 UTC
I am sorry, I am not able to reproduce this issue. Could you, please, provide exact steps to reproduce. Could you, 
please, attach the problematic bean?

> I haven't got another machine or fresh install to repro this on, so I'm
> not sure if this is some internal name conflict or a strange one-off occurance.

You don't need to have another machine or another installation. It is sufficient to start NetBeans with a new (default) 
set of settings. The settings are stored in something called user directory. You can specify this directory using the 
following switch
--userdir <directory>
on command line e.g.
nb --userdir <somePath>/issueWithPaletteControl
Comment 3 wells 2007-10-17 11:47:35 UTC
Hmm, I can't reproduce this with a clean project and settings. Still happens in my project though which is strange.

I still get the issue even with a basic bean. Using this:

class JPaletteControl implements Serializable {
  public JPaletteControl() {
  }
}

The issue is still there: Netbeans can't pick it up, but when I rename it to something else, it can.
Comment 4 Jan Stola 2008-01-04 14:28:36 UTC
Something like JPaletteControl.palette_item_hidden probably remained in 
<userdir>/config/FormDesignerPalette/<yourFolder>.

Closing as non-reproducible. Feel free to reopen if you are able to reproduce it with an empty userdir, but do not 
forget to provide steps to reproduce then.