src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
/**
         * Creates a new listener to combo box and affect changes to the audio
         * level indicator.
         *
         * @param audioSystem The audio system used to get and set the sound
         * devices.
         * @param comboBox The combo box used to select the device the user
         * wants to use.
         * @param soundLevelIndicator The sound level indicator used to show the
         * effectiveness of the capture device.
         */
Creates a new listener to combo box and affect changes to the audio
level indicator.

@param audioSystem The audio system used to get and set the sound
devices.
@param comboBox The combo box used to select the device the user
wants to use.
@param soundLevelIndicator The sound level indicator used to show the
effectiveness of the capture device.
Creates a new listener to combo box and affect changes to the audio level indicator . @param audioSystem The audio system used to get and set the sound devices . @param comboBox The combo box used to select the device the user wants to use . @param soundLevelIndicator The sound level indicator used to show the effectiveness of the capture device .
public void init(
                AudioSystem audioSystem,
                JComboBox comboBox,
                SoundLevelIndicator soundLevelIndicator)
        {
            this.audioSystem = audioSystem;
            if (this.comboBox != comboBox)
            {
                if (this.comboBox != null)
                    this.comboBox.removeActionListener(this);
                this.comboBox = comboBox;
                if (comboBox != null)
                    comboBox.addActionListener(this);
            }
            if (this.soundLevelIndicator != soundLevelIndicator)
            {
                if (this.soundLevelIndicator != null)
                    this.soundLevelIndicator.removeHierarchyListener(this);
                this.soundLevelIndicator = soundLevelIndicator;
                if (soundLevelIndicator != null)
                    soundLevelIndicator.addHierarchyListener(this);
            }
        }
public void init ( AudioSystem audioSystem , JComboBox comboBox , SoundLevelIndicator soundLevelIndicator ) { this . audioSystem = audioSystem ; if ( this . comboBox != comboBox ) { if ( this . comboBox != null ) this . comboBox . removeActionListener ( this ) ; this . comboBox = comboBox ; if ( comboBox != null ) comboBox . addActionListener ( this ) ; } if ( this . soundLevelIndicator != soundLevelIndicator ) { if ( this . soundLevelIndicator != null ) this . soundLevelIndicator . removeHierarchyListener ( this ) ; this . soundLevelIndicator = soundLevelIndicator ; if ( soundLevelIndicator != null ) soundLevelIndicator . addHierarchyListener ( this ) ; } }
Creates a new listener to combo box and affect changes to the audio
 level indicator.
Creates a new listener to combo box and affect changes to the audio level indicator .