Proper fix for ComboBox type error on Java6