dlg.show();
dlg.setVisible(true);
    /* package */ void setPrevSelection( String category, String item ) {        // If a "no camo" item is selected, clear the image.        if ( Player.NO_CAMO.equals(category) ) {            keep.setImage( null );            // Find the correct background color.            for ( int color = 0; color < Player.colorNames.length; color++ ) {                if ( Player.colorNames[color].equals( item ) ) {                    keep.setBackground(PlayerColors.getColor(color));                    prevCat = category;                    prevItem = item;                    break;                }            }        }        // Otherwise, clear the background color and try to        // set the camo image for the "keep old camo" button.        else {            try {                // Don't forget to translate the ROOT_CAMO.                String curCat = category;                if ( Player.ROOT_CAMO.equals( curCat ) ) {                    curCat = ""; //$NON-NLS-1$                }                // We need to copy the image to make it appear.                Image image = (Image) camos.getItem( curCat, item );                // Now, we're ready.                keep.setBackground( categories.getBackground() );                keep.setImage( image );                prevCat = category;                prevItem = item;            }            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.show();                dlg.dispose();            }        }    }