Select recently selected colors in java

I would like to add a color picker dialog to my application that remembers recently selected colors, so it's easy to select the same color as before, instead of getting a few minor color variations.

I tried, but I could not do it with the standard JColorChooser. JColorChooser has a recent color panel in some styles and sensations (motive), but not in others (gtk). Also, there seems to be no way to preset the last color set, so there is no way to remember the state.

I would really like the open source library with the best swing based color picker. It must be compatible with Java 5.

+4
source share
2 answers

Have you tried to see the section " Creating a custom selection panel "? It looks like you can create a custom panel of saved settings either as a new panel or as part of other panels.

+1
source

Take a look at this question . It should solve your problem in one operating system, but it will probably break L & F for multiple platforms.

0
source

Source: https://habr.com/ru/post/1286056/


All Articles