/[classpath]/classpath/javax/swing/plaf/metal/MetalComboBoxUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalComboBoxUI.java

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

revision 1.4 by trebligd, Mon Sep 19 08:51:37 2005 UTC revision 1.5 by trebligd, Tue Oct 18 14:11:26 2005 UTC
# Line 251  public class MetalComboBoxUI Line 251  public class MetalComboBoxUI
251        }        }
252      else      else
253        {        {
254          arrowButton.setText(comboBox.getSelectedItem().toString());          String text = "";
255            Object selected = comboBox.getSelectedItem();
256            if (selected != null)
257              text = selected.toString();
258            arrowButton.setText(text);
259          if (editor != null)          if (editor != null)
260            editor.setVisible(true);            editor.setVisible(true);
261        }        }

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

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