protected void onSurah_ListSurahAction(Component c, ActionEvent event) { // If the resource file changes the names of components this call will break notifying you that // you should fix the code super.onSurah_ListSurahAction(c, event); try { List l = (List) c; String name = (String) l.getSelectedItem(); selectedSurahNumber = Integer.parseInt(name.substring(0, name.indexOf("."))); if (selectSurah != null) { selectSurah.released(); } else { Dialog.show(null, "selectSurah null", "OK", null); } name = null; } catch (Exception e) { Dialog.show(null, "onSurah_ListSurahAction excepption", "OK", null); } }