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 |
|
|
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(); |