If you want to remove panels, you can follow this approach. Here I delete all other panels except Swatches and RGB,
AbstractColorChooserPanel[] panels=colorChooser.getChooserPanels(); for(AbstractColorChooserPanel p:panels){ String displayName=p.getDisplayName(); switch (displayName) { case "HSV": colorChooser.removeChooserPanel(p); break; case "HSL": colorChooser.removeChooserPanel(p); break; case "CMYK": colorChooser.removeChooserPanel(p); break; }
source share