/[classpath]/classpath/javax/swing/plaf/basic/BasicComboPopup.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicComboPopup.java

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

revision 1.5 by mkoch, Fri Oct 22 12:44:00 2004 UTC revision 1.6 by mkoch, Wed Jan 26 23:32:51 2005 UTC
# Line 1  Line 1 
1  /* BasicComboPopup.java --  /* BasicComboPopup.java --
2     Copyright (C) 2004  Free Software Foundation, Inc.     Copyright (C) 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 938  public class BasicComboPopup extends JPo Line 938  public class BasicComboPopup extends JPo
938    
939      public void propertyChange(PropertyChangeEvent e)      public void propertyChange(PropertyChangeEvent e)
940      {      {
941        if (e.getPropertyName().equals(JComboBox.RENDERER_CHANGED_PROPERTY))        if (e.getPropertyName().equals("renderer"))
942          {          {
943            list.setCellRenderer((ListCellRenderer) e.getNewValue());            list.setCellRenderer((ListCellRenderer) e.getNewValue());
944            revalidate();            revalidate();
945            repaint();            repaint();
946          }          }
947        if (e.getPropertyName().equals(JComboBox.MODEL_CHANGED_PROPERTY))        if (e.getPropertyName().equals("dataModel"))
948          {          {
949            list.setModel((ComboBoxModel) e.getNewValue());            list.setModel((ComboBoxModel) e.getNewValue());
950            revalidate();            revalidate();

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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