openFunction((String) list.getSelectedValue());
openFunction((FunctionItem) list.getSelectedValue());
                public void keyPressed(KeyEvent evt) {                    if (evt.getKeyCode() == KeyEvent.VK_ENTER)                        openFunction((String) list.getSelectedValue());                }