}
cbCounterDigits = new JComboBox(digits);
cbCounterDigits.addActionListener(this);
// add controls
XBoxPanel pnlTop = new XBoxPanel();
YBoxPanel pnl1 = new YBoxPanel();
pnl1.setBorder(BorderFactory.createTitledBorder(
Translator.get("batch_rename_dialog.mask")));
pnl1.add(edtFileNameMask);
JPanel pnl1Btns = new JPanel(new GridLayout(3, 2));
btnName = new JButton("[N] - " + Translator.get("name"));
btnName.addActionListener(this);
btnName.setHorizontalAlignment(SwingConstants.LEFT);
pnl1Btns.add(btnName);
btnExtension = new JButton("[E] - " + Translator.get("extension"));
btnExtension.addActionListener(this);
btnExtension.setHorizontalAlignment(SwingConstants.LEFT);
pnl1Btns.add(btnExtension);
btnNameRange = new JButton("[N#-#] - " + Translator.get("batch_rename_dialog.range"));
btnNameRange.addActionListener(this);
btnNameRange.setHorizontalAlignment(SwingConstants.LEFT);
pnl1Btns.add(btnNameRange);
btnCounter = new JButton("[C] - " + Translator.get("batch_rename_dialog.counter"));
btnCounter.addActionListener(this);
btnCounter.setHorizontalAlignment(SwingConstants.LEFT);
pnl1Btns.add(btnCounter);
pnl1.add(pnl1Btns);
pnl1.add(new JPanel());
pnlTop.add(pnl1);
XAlignedComponentPanel pnl2 = new XAlignedComponentPanel(5);
pnl2.setBorder(BorderFactory.createTitledBorder(Translator
.get("batch_rename_dialog.search_replace")));
pnl2.addRow(Translator.get("batch_rename_dialog.search_for"),
edtSearchFor, 5);
pnl2.addRow(Translator.get("batch_rename_dialog.replace_with"),
edtReplaceWith, 5);
pnl2.addRow(Translator.get("batch_rename_dialog.upper_lower_case"),
cbCase, 5);
pnlTop.add(pnl2);
XAlignedComponentPanel pnl3 = new XAlignedComponentPanel(5);
pnl3.setBorder(BorderFactory.createTitledBorder(Translator
.get("batch_rename_dialog.counter") + " [C]"));
pnl3.addRow(Translator.get("batch_rename_dialog.start_at"),
edtCounterStart, 5);
pnl3.addRow(Translator.get("batch_rename_dialog.step_by"),
edtCounterStep, 5);
pnl3.addRow(Translator.get("batch_rename_dialog.format"),
cbCounterDigits, 5);
pnlTop.add(pnl3);
return pnlTop;
}