Can't call method "getSelectedIndex" without a package or object reference