< prev index next >

src/java.desktop/share/classes/javax/swing/ComboBoxModel.java

Print this page

        

@@ -23,16 +23,16 @@
  * questions.
  */
 package javax.swing;
 
 /**
- * A data model for a combo box. This interface extends <code>ListDataModel</code>
+ * A data model for a combo box. This interface extends {@code ListDataModel}
  * and adds the concept of a <i>selected item</i>. The selected item is generally
  * the item which is visible in the combo box display area.
  * <p>
  * The selected item may not necessarily be managed by the underlying
- * <code>ListModel</code>. This disjoint behavior allows for the temporary
+ * {@code ListModel}. This disjoint behavior allows for the temporary
  * storage and retrieval of a selected item in the model.
  *
  * @param <E> the type of the elements of this model
  *
  * @author Arnaud Weber

@@ -40,19 +40,19 @@
  */
 public interface ComboBoxModel<E> extends ListModel<E> {
 
   /**
    * Set the selected item. The implementation of this  method should notify
-   * all registered <code>ListDataListener</code>s that the contents
+   * all registered {@code ListDataListener}s that the contents
    * have changed.
    *
-   * @param anItem the list object to select or <code>null</code>
+   * @param anItem the list object to select or {@code null}
    *        to clear the selection
    */
   void setSelectedItem(Object anItem);
 
   /**
    * Returns the selected item
-   * @return The selected item or <code>null</code> if there is no selection
+   * @return The selected item or {@code null} if there is no selection
    */
   Object getSelectedItem();
 }
< prev index next >