netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Extend ColorEditor to include alpha channel

Open mbastian opened this issue 3 years ago • 1 comments

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

mbastian avatar Sep 24 '22 20:09 mbastian

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

mbien avatar Sep 28 '22 18:09 mbien