/[classpath]/classpath/javax/swing/DefaultComboBoxModel.java
ViewVC logotype

Diff of /classpath/javax/swing/DefaultComboBoxModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by rabbit78, Thu May 19 11:27:27 2005 UTC revision 1.8 by rabbit78, Mon Jun 20 14:35:53 2005 UTC
# Line 192  public class DefaultComboBoxModel extend Line 192  public class DefaultComboBoxModel extend
192    public void setSelectedItem(Object object)    public void setSelectedItem(Object object)
193    {    {
194            
195      /* Updates the selected item only if the given object      // Updates the selected item only if the given object
196       * is null or in the list (this is how the JDK behaves).      // is null or in the list (this is how the JDK behaves).
      */  
197      if(object == null || list.contains(object)) {      if(object == null || list.contains(object)) {
198          selectedItem = object;          selectedItem = object;
199          fireContentsChanged(this, -1, -1);          fireContentsChanged(this, -1, -1);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26