1. /*
  2. * @(#)ComboBoxModel.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing;
  8. /**
  9. * A data model for JComboBox
  10. *
  11. * @version 1.8 11/29/01
  12. * @author Arnaud Weber
  13. */
  14. /** ComboBoxDataModel is a ListDataModel with a selected item
  15. * This selected item is in the model since it is not
  16. * always in the item list.
  17. */
  18. public interface ComboBoxModel extends ListModel {
  19. /** Set the selected item **/
  20. void setSelectedItem(Object anItem);
  21. /** Return the selected item **/
  22. Object getSelectedItem();
  23. }