imageId = Integer.parseInt((String)imageIds[imageList.getSelectedIndex()]);
imageId = imageIds[imageList.getSelectedIndex()];
    public void valueChanged(ListSelectionEvent e) {        imageId          = Integer.parseInt((String)imageIds[imageList.getSelectedIndex()]);        updateImageLabel();        updateEnabledState();    }