< prev index next >

src/java.desktop/share/classes/javax/swing/colorchooser/ColorSelectionModel.java

Print this page

        

@@ -28,46 +28,46 @@
 import javax.swing.*;
 import javax.swing.event.*;
 import java.awt.Color;
 
 /**
- * A model that supports selecting a <code>Color</code>.
+ * A model that supports selecting a {@code Color}.
  *
  * @author Steve Wilson
  *
  * @see java.awt.Color
  */
 public interface ColorSelectionModel {
     /**
-     * Returns the selected <code>Color</code> which should be
-     * non-<code>null</code>.
+     * Returns the selected {@code Color} which should be
+     * non-{@code null}.
      *
-     * @return  the selected <code>Color</code>
+     * @return  the selected {@code Color}
      * @see     #setSelectedColor
      */
     Color getSelectedColor();
 
     /**
-     * Sets the selected color to <code>color</code>.
-     * Note that setting the color to <code>null</code>
+     * Sets the selected color to {@code color}.
+     * Note that setting the color to {@code null}
      * is undefined and may have unpredictable results.
      * This method fires a state changed event if it sets the
-     * current color to a new non-<code>null</code> color.
+     * current color to a new non-{@code null} color.
      *
-     * @param color the new <code>Color</code>
+     * @param color the new {@code Color}
      * @see   #getSelectedColor
      * @see   #addChangeListener
      */
     void setSelectedColor(Color color);
 
     /**
-     * Adds <code>listener</code> as a listener to changes in the model.
-     * @param listener the <code>ChangeListener</code> to be added
+     * Adds {@code listener} as a listener to changes in the model.
+     * @param listener the {@code ChangeListener} to be added
      */
     void addChangeListener(ChangeListener listener);
 
     /**
-     * Removes <code>listener</code> as a listener to changes in the model.
-     * @param listener the <code>ChangeListener</code> to be removed
+     * Removes {@code listener} as a listener to changes in the model.
+     * @param listener the {@code ChangeListener} to be removed
      */
     void removeChangeListener(ChangeListener listener);
 }
< prev index next >