dialog.setSize(600, 400);
dialog.setTitle(getName());
dialog.centerOnParent();
ReplaygainPanel panel = new ReplaygainPanel(dialog);
dialog.add(panel);
ReplaygainThread thread = panel.new ReplaygainThread();
thread.start();
dialog.setVisible(true);
try {
thread.join();
} catch (InterruptedException e) {
logger.error("Couldn't wait for replaygain process", e);
}
boolean success = thread.isSuccess();
return success;
}