/[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.7 by mark, Sat Jul 2 20:32:50 2005 UTC revision 1.8 by trebligd, Thu Sep 29 20:19:20 2005 UTC
# Line 40  package javax.swing.plaf.basic; Line 40  package javax.swing.plaf.basic;
40    
41  import java.awt.Component;  import java.awt.Component;
42  import java.awt.Dimension;  import java.awt.Dimension;
43    import java.awt.Insets;
44  import java.awt.Point;  import java.awt.Point;
45  import java.awt.Rectangle;  import java.awt.Rectangle;
46  import java.awt.event.ItemEvent;  import java.awt.event.ItemEvent;
# Line 179  public class BasicComboPopup extends JPo Line 180  public class BasicComboPopup extends JPo
180      int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount());      int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount());
181    
182      list.setPreferredSize(new Dimension(cbBounds.width, popupHeight));      list.setPreferredSize(new Dimension(cbBounds.width, popupHeight));
183      super.setPopupSize(cbBounds.width, popupHeight);      Insets insets1 = getInsets();
184        Insets insets2 = scroller.getInsets();
185        super.setPopupSize(cbBounds.width, popupHeight + insets1.top
186                + insets1.bottom + insets2.top + insets2.bottom);
187    
188      // Highlight selected item in the combo box's drop down list      // Highlight selected item in the combo box's drop down list
189      if (comboBox.getSelectedIndex() != -1)      if (comboBox.getSelectedIndex() != -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