setPrevSelection((String) categories.getSelectedItem(), items.getSelectedItem());
setPrevSelection((String) categories.getSelectedItem(), (String) items.getSelectedValue());
    public Object[] getSelectedObjects() {        // Update the prev selection.        setPrevSelection((String) categories.getSelectedItem(),                items.getSelectedItem());        // Return a null if the "no camo" category is selected.        if (Player.NO_CAMO.equals(prevCat)) return null;        // Try to get the selected camo's Image.        // Don't forget to translate the ROOT_CAMO.        Image image = null;        try {            String curCat = prevCat;            if (Player.ROOT_CAMO.equals(curCat)) {                curCat = ""; //$NON-NLS-1$            }            image = (Image) camos.getItem(curCat, prevItem);        } catch (Exception err) {            // Print the stack trace and display the message.            err.printStackTrace();            AlertDialog dlg = new AlertDialog                    (frame, Messages.getString("CamoChoiceDialog.error_getting_camo"), err.getMessage()); //$NON-NLS-1$            dlg.setVisible(true);            dlg.dispose();        }        if (image == null) return null;        // Return an array containing the image.        Image[] ret = new Image[1];        ret[0] = image;        return ret;    }