rbEmbedInTiles.setEnabled(embedImages); rbEmbedInSet.setEnabled(embedImages);
    private void updateFromConfiguration() {        undoDepth.setValue(prefs.getInt("undoDepth", 30));        gridOpacitySlider.setValue(displayPrefs.getInt("gridOpacity", 255));        if (savingPrefs.getBoolean("embedImages", true)) {            cbEmbedImages.setSelected(true);            rbEmbedInTiles.setSelected(true);        }        cbBinaryEncode.setSelected(savingPrefs.getBoolean("encodeLayerData", true));        cbCompressLayerData.setSelected(savingPrefs.getBoolean("layerCompression", true));        cbGridAA.setSelected(displayPrefs.getBoolean("gridAntialias", true));        cbReportIOWarnings.setSelected(ioPrefs.getBoolean("reportWarnings", false));        cbCompressLayerData.setEnabled(cbBinaryEncode.isSelected());    }