apache / apache/netbeans

Palette Manager not show Components icons in java 9 and above

Open
#5,063 0 comments 0 reactions 0 assignees View on GitHub
FormDesigner Java kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 16

### What happened

If we use Netbeans 16 with JDK 1.8 we can use custom components with custom icons in the palette. See above for example

![alt text](https://raw.githubusercontent.com/MXandresMX/Netbeansprlem/main/1.png)

![alt text](https://raw.githubusercontent.com/MXandresMX/Netbeansprlem/main/2.png)

Now if we install netbeans with Java 19 for example this corrupt the icons in the palette.

![alt text](https://raw.githubusercontent.com/MXandresMX/Netbeansprlem/main/4.png)
![alt text](https://raw.githubusercontent.com/MXandresMX/Netbeansprlem/main/3.png)

### How to reproduce

Try to use a custom JPanel for example.
1.- Create a Extended class of JPanel
2.- Create BeanInfo
3.- Replace icons x16 and x32
4.- Compile the jar
5.- Import it again with the Palette Manager
6.- Select the Custom panel
7.- Not show the icon in the palette Manager.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 11 x64

### JDK

19

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the missing custom JPanel icons in Palette Manager with the reported BeanInfo steps under JDK 19, then compare the result with JDK 8. Inspect how Palette Manager reads the 16x16 and 32x32 icons from the imported component JAR; done means the custom icons appear correctly for the imported component.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.