public JMenuItem createOpenItem() {
        open = new JMenuItem("Open");
        open.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
        open.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {

                if (!(w == null)) {
                    JPanel panel = new JPanel();
                    JLabel label = new JLabel("Insert password ");
                    JPasswordField pass = new JPasswordField(15);

                    panel.add(label);
                    panel.add(pass);

                    int op = JOptionPane.showConfirmDialog(null, panel, "Password", JOptionPane.OK_CANCEL_OPTION);
                    if (op == JOptionPane.YES_OPTION) {
                        if (pass.getText().equals(w.getPassword())) {
                            addWalletMenu(w);
                            open.setEnabled(false);
                            isOpen = true;

                            revalidate();
                        } else {
                            JOptionPane.showMessageDialog(null, "Wrong Password!");
                        }
                    }

                } else {
                    JOptionPane.showMessageDialog(null, "Wallet not created yet !", "Error", JOptionPane.OK_OPTION);
                }

            }
        });
        open.setEnabled(false);
        return open;
    }