apache / netbeans

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

Extend ColorEditor to include alpha channel #4680

Open mbastian opened 2 years ago

mbastian commented 2 years ago

Description

The org.netbeans.beaninfo.editors.ColorEditor class does not support the alpha channel. This PropertyEditor is used in various places.

The color chooser UI allows to set the transparency but then it's ignored.

Screenshot 2022-09-24 at 21 59 51

Do I miss something or it's a gap?

You can reproduce it by

  1. Create a new JPanel and change the background color
  2. Select a color with transparency
  3. Close the editor and reopen it, the transparency setting is gone

Use case/motivation

In some cases one want to select a color with the alpha channel. As a default color editor, it should support it.

Related issues

No response

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

mbien commented 2 years ago

sounds useful, let me know if you need help or a PR review