Window parent = SwingUtilities.getWindowAncestor(panel);
JDialog dialog = new JDialog(parent);
dialog.setModal(true);
dialog.setTitle(_(SEARCHING));
dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
dialog.setContentPane(new WorkingPanel(panel.getFilter(), panel
.getFileListModel().getFiles()));
dialog.pack();
dialog.setMinimumSize(dialog.getSize());
dialog.setLocationRelativeTo(parent);
dialog.setVisible(true);