CellConstraints cc = new CellConstraints();
Localizer localizer = Localizer.getLocalizerFor(CopyWaitingDlg.class);
String msg = localizer.msg("waitingHeader", "Importing TV data (this can take some minutes).");
JTextArea header = new JTextArea();
header.setPreferredSize(new Dimension(370,40));
if(messageType == IMPORT_MSG) {
msg = localizer.msg("waitingHeaderCopy", "Copying TV data (this can take some minutes).");
}
else if(messageType == APPDATA_MSG) {
msg = localizer.msg("appdataHeaderMsg", "Copying TV data (this can need some minutes).\nThe data and the settings are copied to the\n" +
"Windows appdata directory. You can delete the old TV-Browser settings directory\n if you don't use an old version of TV-Browser.");
header.setPreferredSize(new Dimension(370,90));
}
else if(messageType == EXPORT_SETTINGS_MSG) {
msg = localizer.msg("exportHeader","Copying TV data (this can need some minutes).\nThe data and the settings are copied to the\n"+
"system settings directory.");
header.setPreferredSize(new Dimension(370,60));
}
else {
msg = localizer.msg("waitingSettingsHeader","Importing the settings of a previous version (this may take some minutes).");
}
header.setText(msg);
header.setEditable(false);
header.setLineWrap(true);
header.setWrapStyleWord(true);
header.setBorder(null);
header.setOpaque(false);
JLabel label = new JLabel(localizer.msg("pleaseWait", "Please wait until the files were copied."));
header.setFont(label.getFont());
header.setFont(header.getFont().deriveFont(Font.BOLD,(float)13));
label.setFont(header.getFont());
panel.add(header, cc.xy(2, 2));
panel.add((label), cc.xy(2, 4));