FileDocCategorySizeDatePackage
SynthComboPopup.javaAPI DocJava SE 5 API1405Fri Aug 26 14:58:12 BST 2005javax.swing.plaf.synth

SynthComboPopup

public class SynthComboPopup extends BasicComboPopup
Synth's ComboPopup.
version
1.7, 12/19/03
author
Scott Violet

Fields Summary
Constructors Summary
public SynthComboPopup(JComboBox combo)

        super(combo);
    
Methods Summary
protected voidconfigureList()
Configures the list which is used to hold the combo box items in the popup. This method is called when the UI class is created.

see
#createList

        list.setFont( comboBox.getFont() );
        list.setCellRenderer( comboBox.getRenderer() );
        list.setFocusable( false );
        list.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
        int selectedIndex = comboBox.getSelectedIndex();
        if ( selectedIndex == -1 ) {
            list.clearSelection();
        }
        else {
            list.setSelectedIndex( selectedIndex );
	    list.ensureIndexIsVisible( selectedIndex );
        }
        installListListeners();