private void initComponents() {
JPanel panel = (JPanel) getContentPane();
panel.setLayout(new BorderLayout(5, 5));
panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
JProgressBar bar = new JProgressBar();
bar.setPreferredSize(new Dimension(200, 20));
bar.setIndeterminate(true);
bar.setStringPainted(true);
bar.setString(title);
if (listener == null)
cancel.setEnabled(false);
panel.add(bar, BorderLayout.NORTH);