private void addToolbar() {         //ӹ
        myTooBar=new JToolBar();
        myTooBar.setSize(600,300);
        this.getContentPane().add(myTooBar, BorderLayout.NORTH);
        JButton passBtn=new JButton("ά");        //ť
        JButton notepadBtn=new JButton("ճ");
        JButton addrBookBtn=new JButton("ͨѶ");
        JButton pwdBtn=new JButton("뱸");
        JButton dbMaintainBtn=new JButton("ݿά");

        passBtn.setToolTipText("޸ĵ½");       //ʾ
        notepadBtn.setToolTipText("ճ");
        addrBookBtn.setToolTipText("ͨѶ");
        pwdBtn.setToolTipText("뱸");
        dbMaintainBtn.setToolTipText("ݡԭݿ");


        //ΪťӼ
        notepadBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new notepadDialog(MainFrame.this);      //notepadԻ
            }
        });

        addrBookBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new addrBookDialog(MainFrame.this);
            }
        });

        pwdBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new pwdDialog(MainFrame.this);
            }
        });

        dbMaintainBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new dbMaintainDialog(MainFrame.this);
            }
        });

        passBtn.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new passMaintainDialog(MainFrame.this);
            }
        });

        myTooBar.add(passBtn,null);
        myTooBar.add(notepadBtn,null);
        myTooBar.add(addrBookBtn,null);
        myTooBar.add(pwdBtn,null);
        myTooBar.add(dbMaintainBtn,null);
    }