apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.69k stars 853 forks source link

Component palette no more usable after resetting the IDE's GUI #8005

Open Erwan102 opened 2 days ago

Erwan102 commented 2 days ago

Apache NetBeans version

Apache NetBeans 23

What happened

Once the NetBeans IDE's GUI is restored to its default configuration (see Window -> Reset Windows menu item), it's impossible to use a custom component palette. When trying to select an item, the palette disappears and the item can't be dragged & dropped.

The custom palette is created with the PaletteFactory class and its createPalette method:

Capture d'écran 2024-11-28 172147

Language / Project Type / NetBeans Component

No response

How to reproduce

Just create a new component palette using the palette API. Then, build and install the module. Open NetBeans and reset its GUI : the content of the palette can't be used anymore.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10

JDK

JDK 17

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

No

neilcsmith-net commented 2 days ago

Is this in the context of adding to the IDE, or adding to a platform application? Can you create a basic example project that demonstrates the issue, and attach it here.

Erwan102 commented 1 day ago

It is in the context of adding to a platform application.

I attach here the code used to create our palette. It is slightly incomplete but you can use it to reproduce the issue.

custom-component-palette-example.zip

Thank you very much for your help,