Disable particular color in JColorChooser in Swing

145 Views Asked by At

I am using two JColorChooser dialog in my application.

To change label's:

  1. Foreground Color
  2. Background Color

So whatever color I have selected for foreground it should not be available in for background JColorChooser

For example, If I choose RED color from foreground JColorChooser dialog , then In background JColorChooser RED color should be disabled or should not be visible.

And vice versa.

So how can I implement this?

0

There are 0 best solutions below