IndexDicml(String pathToFile, Frame owner, boolean modal, ResourceBundle i18n)
public IndexDicml(String pathToFile, JFrame owner, boolean modal, ResourceBundle i18n)
  IndexDicml(String pathToFile, Frame owner, boolean modal, ResourceBundle i18n)  {    super(owner, modal);        errorOccured = false;        this.i18n = i18n;    errorDlg = new ErrorDialog(owner, true, i18n);        //setPreferredSize(new Dimension(500, 100));        GridBagLayout gbl = new GridBagLayout();    GridBagConstraints gbc;    setLayout(gbl);        gbc = new GridBagConstraints();    lInfo = new JLabel();    gbc.gridx = 0;    gbc.gridy = 0;    gbc.gridwidth = 2;    gbc.anchor = GridBagConstraints.CENTER;    gbc.fill = GridBagConstraints.HORIZONTAL;    gbc.insets = new Insets(1, 1, 1, 1);    gbl.setConstraints(lInfo, gbc);    add(lInfo);        dicmlFile = new File(pathToFile);    lInfo.setText(i18n.getString("indexFile1") + dicmlFile.getName() + i18n.getString("indexFile2"));        gbc = new GridBagConstraints();    pbStatus = new JProgressBar(JProgressBar.HORIZONTAL, 0, 100);    gbc.gridx = 0;    gbc.gridy = 1;    gbc.gridwidth = 2;    gbc.anchor = GridBagConstraints.CENTER;    gbc.fill = GridBagConstraints.HORIZONTAL;    gbc.insets = new Insets(1, 1, 1, 1);    gbl.setConstraints(pbStatus, gbc);    pbStatus.setStringPainted(true);    pbStatus.setString("0%");    pbStatus.setValue(0);    add(pbStatus);    gbc = new GridBagConstraints();    btOk = new JButton(i18n.getString("indexOk"));    gbc.gridx = 0;    gbc.gridy = 2;    gbc.gridwidth = 1;    gbc.anchor = GridBagConstraints.WEST;    gbc.fill = GridBagConstraints.NONE;    gbc.insets = new Insets(1, 1, 1, 1);    gbl.setConstraints(btOk, gbc);    btOk.setEnabled(false);    btOk.addActionListener(this);    btOk.setActionCommand("ok");    add(btOk);    gbc = new GridBagConstraints();    btAbort = new JButton(i18n.getString("indexAbort"));    gbc.gridx = 1;    gbc.gridy = 2;    gbc.gridwidth = 1;    gbc.anchor = GridBagConstraints.EAST;    gbc.fill = GridBagConstraints.NONE;    gbc.insets = new Insets(1, 1, 1, 1);    btAbort.setEnabled(true);    btAbort.addActionListener(this);    btAbort.setActionCommand("abort");    gbl.setConstraints(btAbort, gbc);    add(btAbort);        pack();        setTitle(i18n.getString("indexState"));    this.setLocation(100, 100);        //start new worker-thread     workerThread = new IndexDicmlWork(dicmlFile, this);    workerThread.start();        setVisible(true);  }