public passMaintainDialog(MainFrame mainFrame) {
        super(mainFrame,true);
        setTitle("½Ȩά");

        JPanel contentPanel=new JPanel(new FlowLayout());
        this.setContentPane(contentPanel);

        contentPanel.add(new JLabel("û:"));      //ûı
        final JTextField nameText=new JTextField(10);
        contentPanel.add(nameText);

        contentPanel.add(new JLabel(":"));      //ûı
        final JTextField passText=new JTextField(10);
        contentPanel.add(passText);

        JButton okBtn=new JButton("޸");
        okBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                String newName;
                String newPass;

                newName=nameText.getText();     //û
                newPass=passText.getText();     //
                changePass(newName, newPass);
                JOptionPane.showMessageDialog(null,"½Ȩ޸ĳɹ"); //ʾʾ
                dispose();


            }
        });

        JButton cancelBtn=new JButton("ȡ");        //ȡťرնԻ
        cancelBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                dispose();
            }
        });
        contentPanel.add(okBtn);
        contentPanel.add(cancelBtn);

        setSize(200,150);
        setResizable(false);
        setLocationRelativeTo(null);
        setVisible(true);
    }