|
|
|
@ -62,19 +62,28 @@ public abstract class ColorControlWindow extends JPopupMenu {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initSelectionPopupPane(boolean isSupportTransparent) { |
|
|
|
|
selectionPopupPane = new ColorSelectionPopupPane(isSupportTransparent, supportThemeColor()); |
|
|
|
|
selectionPopupPane = createColorSelectionPopupPane(isSupportTransparent); |
|
|
|
|
this.add(selectionPopupPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected ColorSelectionPopupPane createColorSelectionPopupPane(boolean isSupportTransparent) { |
|
|
|
|
return new ColorSelectionPopupPane(isSupportTransparent, supportThemeColor()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected boolean supportThemeColor(){ |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class ColorSelectionPopupPane extends NewColorSelectPane { |
|
|
|
|
protected class ColorSelectionPopupPane extends NewColorSelectPane { |
|
|
|
|
private static final long serialVersionUID = 7822856562329146354L; |
|
|
|
|
|
|
|
|
|
public ColorSelectionPopupPane(boolean isSupportTransparent, boolean isSupportThemeColor) { |
|
|
|
|
this(isSupportTransparent, isSupportThemeColor, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ColorSelectionPopupPane(boolean isSupportTransparent, boolean isSupportThemeColor, Color color) { |
|
|
|
|
super(isSupportTransparent, isSupportThemeColor); |
|
|
|
|
this.setColor(color); |
|
|
|
|
this.addChangeListener(new ChangeListener() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|