Here you can find the source of fixOsxColorChooser(JColorChooser chooser)
public static void fixOsxColorChooser(JColorChooser chooser)
//package com.java2s; //License from project: LGPL import java.awt.Component; import javax.swing.JColorChooser; import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.UIManager; import javax.swing.colorchooser.AbstractColorChooserPanel; public class Main { public static void fixOsxColorChooser(JColorChooser chooser) { if (!UIManager.getLookAndFeel().getName().equals("Mac OS X")) return; AbstractColorChooserPanel[] panels = chooser.getChooserPanels(); for (JPanel p : panels) { if (p != null) { p.setOpaque(false);/*from w w w.j av a2 s . co m*/ ((JComponent) p.getParent()).setOpaque(false); for (Component c : p.getComponents()) { ((JComponent) c).setBorder(null); ((JComponent) c).setOpaque(false); } } } } }