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

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

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

revision 1.16 by trebligd, Sun Sep 18 15:27:20 2005 UTC revision 1.17 by trebligd, Sun Sep 18 18:16:52 2005 UTC
# Line 459  public class BasicComboBoxUI extends Com Line 459  public class BasicComboBoxUI extends Com
459      // in order to determine the right colors when rendering      // in order to determine the right colors when rendering
460      listBox = new JList();      listBox = new JList();
461    
     Color background = arrowButton.getBackground();  
     listBox.setBackground(background);  
     listBox.setSelectionBackground(background.darker());  
   
     Color foreground = arrowButton.getForeground();  
     listBox.setForeground(foreground);  
     listBox.setSelectionForeground(foreground);  
   
462      // set editor and renderer for the combo box. Editor is used      // set editor and renderer for the combo box. Editor is used
463      // only if combo box becomes editable, otherwise renderer is used      // only if combo box becomes editable, otherwise renderer is used
464      // to paint the selected item; combobox is not editable by default.      // to paint the selected item; combobox is not editable by default.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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