jcc.setPreviewPanel(ok.getTransparancyAdjustment(initColor.getAlpha()));
    public static Color showDialog(Component component,                                   String title,                                    Color startingColor) {        Color initColor = startingColor != null ? startingColor : Color.white;        final JColorChooser jcc = new JColorChooser(initColor);        ColorTracker ok = new ColorTracker(jcc);        jcc.setPreviewPanel(ok.getTransparancyAdjustment(initColor.getAlpha()));        jcc.getSelectionModel().addChangeListener(ok);        JDialog colorDialog = JColorChooser.createDialog(component, title,                                                         true, jcc,                                                         ok, null);        colorDialog.show();        return ok.getColor();    }