/** * shows a color chooser dialog * * @param initialColor the initial Color set when the color-chooser is shown * @return the selected color or <code>null</code> if the user opted out */ public Color showColorChooserDialog(Color initialColor) { setColor(initialColor); SVGColorTracker ok = new SVGColorTracker(this); JDialog dialog = createDialog(Editor.getParent(), "", true, this, ok, null); dialog.setVisible(true); return ok.getColor(); }