< prev index next >
src/java.desktop/share/classes/javax/swing/JCheckBox.java
Print this page
@@ -44,13 +44,13 @@
* in <em>The Java Tutorial</em>
* for examples and information on using check boxes.
* <p>
* Buttons can be configured, and to some degree controlled, by
* <code><a href="Action.html">Action</a></code>s. Using an
- * <code>Action</code> with a button has many benefits beyond directly
+ * {@code Action} with a button has many benefits beyond directly
* configuring a button. Refer to <a href="Action.html#buttonActions">
- * Swing Components Supporting <code>Action</code></a> for more
+ * Swing Components Supporting {@code Action}</a> for more
* details, and you can find more information in <a
* href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How
* to Use Actions</a>, a section in <em>The Java Tutorial</em>.
* <p>
* <strong>Warning:</strong> Swing is not thread safe. For more
@@ -62,11 +62,11 @@
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is
* appropriate for short term storage or RMI between applications running
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
- * has been added to the <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
* Please see {@link java.beans.XMLEncoder}.
*
* @see JRadioButton
*
* @beaninfo
@@ -111,11 +111,11 @@
* Creates a check box with an icon and specifies whether
* or not it is initially selected.
*
* @param icon the Icon image to display
* @param selected a boolean value indicating the initial selection
- * state. If <code>true</code> the check box is selected
+ * state. If {@code true} the check box is selected
*/
public JCheckBox(Icon icon, boolean selected) {
this(null, icon, selected);
}
@@ -145,11 +145,11 @@
* Creates a check box with text and specifies whether
* or not it is initially selected.
*
* @param text the text of the check box.
* @param selected a boolean value indicating the initial selection
- * state. If <code>true</code> the check box is selected
+ * state. If {@code true} the check box is selected
*/
public JCheckBox (String text, boolean selected) {
this(text, null, selected);
}
@@ -169,33 +169,33 @@
* and specifies whether or not it is initially selected.
*
* @param text the text of the check box.
* @param icon the Icon image to display
* @param selected a boolean value indicating the initial selection
- * state. If <code>true</code> the check box is selected
+ * state. If {@code true} the check box is selected
*/
public JCheckBox (String text, Icon icon, boolean selected) {
super(text, icon, selected);
setUIProperty("borderPainted", Boolean.FALSE);
setHorizontalAlignment(LEADING);
}
/**
- * Sets the <code>borderPaintedFlat</code> property,
+ * Sets the {@code borderPaintedFlat} property,
* which gives a hint to the look and feel as to the
* appearance of the check box border.
- * This is usually set to <code>true</code> when a
- * <code>JCheckBox</code> instance is used as a
- * renderer in a component such as a <code>JTable</code> or
- * <code>JTree</code>. The default value for the
- * <code>borderPaintedFlat</code> property is <code>false</code>.
+ * This is usually set to {@code true} when a
+ * {@code JCheckBox} instance is used as a
+ * renderer in a component such as a {@code JTable} or
+ * {@code JTree}. The default value for the
+ * {@code borderPaintedFlat} property is {@code false}.
* This method fires a property changed event.
* Some look and feels might not implement flat borders;
* they will ignore this property.
*
- * @param b <code>true</code> requests that the border be painted flat;
- * <code>false</code> requests normal borders
+ * @param b {@code true} requests that the border be painted flat;
+ * {@code false} requests normal borders
* @see #isBorderPaintedFlat
* @beaninfo
* bound: true
* attribute: visualUpdate true
* description: Whether the border is painted flat.
@@ -210,13 +210,13 @@
repaint();
}
}
/**
- * Gets the value of the <code>borderPaintedFlat</code> property.
+ * Gets the value of the {@code borderPaintedFlat} property.
*
- * @return the value of the <code>borderPaintedFlat</code> property
+ * @return the value of the {@code borderPaintedFlat} property
* @see #setBorderPaintedFlat
* @since 1.3
*/
public boolean isBorderPaintedFlat() {
return flat;
@@ -288,11 +288,11 @@
/**
* Returns a string representation of this JCheckBox. This method
* is intended to be used only for debugging purposes, and the
* content and format of the returned string may vary between
* implementations. The returned string may be empty but may not
- * be <code>null</code>.
+ * be {@code null}.
* specific new aspects of the JFC components.
*
* @return a string representation of this JCheckBox.
*/
protected String paramString() {
@@ -322,21 +322,21 @@
return accessibleContext;
}
/**
* This class implements accessibility support for the
- * <code>JCheckBox</code> class. It provides an implementation of the
+ * {@code JCheckBox} class. It provides an implementation of the
* Java Accessibility API appropriate to check box user-interface
* elements.
* <p>
* <strong>Warning:</strong>
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is
* appropriate for short term storage or RMI between applications running
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
- * has been added to the <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
* Please see {@link java.beans.XMLEncoder}.
*/
@SuppressWarnings("serial") // Same-version serialization only
protected class AccessibleJCheckBox extends AccessibleJToggleButton {
< prev index next >