134 /**
135 * Resets the UI property to a value from the current look and
136 * feel.
137 *
138 * @see JComponent#updateUI
139 */
140 public void updateUI() {
141 setUI((ButtonUI)UIManager.getUI(this));
142 }
143
144
145 /**
146 * Returns a string that specifies the name of the L&F class
147 * that renders this component.
148 *
149 * @return the string "ButtonUI"
150 * @see JComponent#getUIClassID
151 * @see UIDefaults#getUI
152 */
153 @BeanProperty(bound = false, expert = true, description
154 = "A string that specifies the name of the L&F class.")
155 public String getUIClassID() {
156 return uiClassID;
157 }
158
159
160 /**
161 * Gets the value of the <code>defaultButton</code> property,
162 * which if <code>true</code> means that this button is the current
163 * default button for its <code>JRootPane</code>.
164 * Most look and feels render the default button
165 * differently, and may potentially provide bindings
166 * to access the default button.
167 *
168 * @return the value of the <code>defaultButton</code> property
169 * @see JRootPane#setDefaultButton
170 * @see #isDefaultCapable
171 */
172 @BeanProperty(bound = false, description
173 = "Whether or not this button is the default button")
174 public boolean isDefaultButton() {
|
134 /**
135 * Resets the UI property to a value from the current look and
136 * feel.
137 *
138 * @see JComponent#updateUI
139 */
140 public void updateUI() {
141 setUI((ButtonUI)UIManager.getUI(this));
142 }
143
144
145 /**
146 * Returns a string that specifies the name of the L&F class
147 * that renders this component.
148 *
149 * @return the string "ButtonUI"
150 * @see JComponent#getUIClassID
151 * @see UIDefaults#getUI
152 */
153 @BeanProperty(bound = false, expert = true, description
154 = "A string that specifies the name of the L&F class.")
155 public String getUIClassID() {
156 return uiClassID;
157 }
158
159
160 /**
161 * Gets the value of the <code>defaultButton</code> property,
162 * which if <code>true</code> means that this button is the current
163 * default button for its <code>JRootPane</code>.
164 * Most look and feels render the default button
165 * differently, and may potentially provide bindings
166 * to access the default button.
167 *
168 * @return the value of the <code>defaultButton</code> property
169 * @see JRootPane#setDefaultButton
170 * @see #isDefaultCapable
171 */
172 @BeanProperty(bound = false, description
173 = "Whether or not this button is the default button")
174 public boolean isDefaultButton() {
|