chooser.addChoosableFileFilter(new ZipFilter()); chooser.setSelectedFile(new File("eXist-backup.zip"));
    private void restoreAction(ActionEvent ev) {        JFileChooser chooser = new JFileChooser();        chooser.setMultiSelectionEnabled(false);        chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);        chooser.addChoosableFileFilter(new BackupContentsFilter());        chooser.addChoosableFileFilter(new ZipFilter());        chooser.setSelectedFile(new File("eXist-backup.zip"));        if (chooser.showDialog(null, Messages.getString("ClientFrame.169")) == JFileChooser.APPROVE_OPTION) { //$NON-NLS-1$        	JPanel askPass = new JPanel(new BorderLayout());        	askPass.add(new JLabel(Messages.getString("ClientFrame.170")), BorderLayout.NORTH); //$NON-NLS-1$        	JPasswordField passInput = new JPasswordField(25);        	askPass.add(passInput, BorderLayout.CENTER);        	if (JOptionPane.showOptionDialog(this, askPass, Messages.getString("ClientFrame.171"), //$NON-NLS-1$                    JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE,                    null, null, null) == JOptionPane.YES_OPTION) {        		String newDbaPass = passInput.getPassword().length == 0 ? null : new String(passInput.getPassword());	            File f = chooser.getSelectedFile();	            String restoreFile = f.getAbsolutePath();	            try {	                Restore restore = new Restore(properties.getProperty("user", //$NON-NLS-1$	                        "admin"), properties.getProperty("password", null), //$NON-NLS-1$ //$NON-NLS-2$	                        newDbaPass,	                        new File(restoreFile), properties.getProperty("uri", //$NON-NLS-1$	                        "xmldb:exist://")); //$NON-NLS-1$	                restore.restore(true, this);	                	                if (properties.getProperty("user", "admin").equals("admin") && newDbaPass != null) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$		            	properties.setProperty("password", newDbaPass); //$NON-NLS-1$		            client.reloadCollection();	            } catch (Exception e) {	            	showErrorMessage(Messages.getString("ClientFrame.181") + e.getMessage(), e); //$NON-NLS-1$	            }        	}        }    }