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

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

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

revision 1.1 by trebligd, Tue Sep 13 21:36:03 2005 UTC revision 1.2 by trebligd, Fri Sep 23 16:24:27 2005 UTC
# Line 209  public class MetalComboBoxButton extends Line 209  public class MetalComboBoxButton extends
209        }        }
210      else      else
211        {        {
212          String text = comboBox.getModel().getSelectedItem().toString();          String text = "";
213            Object selected = comboBox.getModel().getSelectedItem();
214            if (selected != null)
215              text = selected.toString();
216          Rectangle bounds = comboBox.getBounds();          Rectangle bounds = comboBox.getBounds();
217          Rectangle innerArea = SwingUtilities.calculateInnerArea(this, null);          Rectangle innerArea = SwingUtilities.calculateInnerArea(this, null);
218          if (comboBox.hasFocus())          if (comboBox.hasFocus())

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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