--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalToggleButtonUI.java Fri Jun 27 10:26:39 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalToggleButtonUI.java Mon Jun 30 16:32:36 2014 +0400
@@ -60,8 +60,19 @@
private static final Object METAL_TOGGLE_BUTTON_UI_KEY = new Object();
+ /**
+ * The color of a focused toggle button.
+ */
protected Color focusColor;
+
+ /**
+ * The color of a selected button.
+ */
protected Color selectColor;
+
+ /**
+ * The color of a disabled text.
+ */
protected Color disabledTextColor;
private boolean defaults_initialized = false;
@@ -69,6 +80,13 @@
// ********************************
// Create PLAF
// ********************************
+
+ /**
+ * Constructs the {@code MetalToogleButtonUI}.
+ *
+ * @param b a component
+ * @return the {@code MetalToogleButtonUI}.
+ */
public static ComponentUI createUI(JComponent b) {
AppContext appContext = AppContext.getAppContext();
MetalToggleButtonUI metalToggleButtonUI =
@@ -101,14 +119,29 @@
// ********************************
// Default Accessors
// ********************************
+ /**
+ * Returns the color of a selected button.
+ *
+ * @return the color of a selected button
+ */
protected Color getSelectColor() {
return selectColor;
}
+ /**
+ * Returns the color of a disabled text.
+ *
+ * @return the color of a disabled text
+ */
protected Color getDisabledTextColor() {
return disabledTextColor;
}
+ /**
+ * Returns the color of a focused toggle button.
+ *
+ * @return the color of a focused toggle button
+ */
protected Color getFocusColor() {
return focusColor;
}