currentColors[i] = Core.getCurSrcDVDPalette().getColor(i);
defaultColors[i] = Core.getDefSrcDVDPalette().getColor(i);
}
DvdPaletteDialog dvdPaletteDialog = new DvdPaletteDialog(view, colorNames, currentColors, defaultColors, model.getColorProfilePath());
dvdPaletteDialog.setVisible(true);
if (!dvdPaletteDialog.wasCanceled()) {
currentColors = dvdPaletteDialog.getColors();
model.setColorProfilePath(dvdPaletteDialog.getPath());
Palette p = new Palette(currentColors.length, true);
for (int i=0; i<currentColors.length; i++) {
p.setColor(i, currentColors[i]);