apache / apache/netbeans

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

Open
#8,005 2 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage pending-response Platform
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### 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](https://github.com/user-attachments/assets/42bc5a05-37e7-4e43-baa9-1258f6d0f0d9)

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

Contributor guide

Open the contributing guide

Research direction

Start with the custom palette created through PaletteFactory.createPalette, then reproduce the failure in NetBeans 23 after Window -> Reset Windows on Windows 10 with JDK 17. Trace why selecting a palette item makes the palette disappear. Done means a custom component palette remains usable and supports drag-and-drop after the GUI reset.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.