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. |