public JMenuItem createLoadItem() {
        load = new JMenuItem("Load");
        load.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
        load.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                FileInputStream input;
                File f;
                JFileChooser chooser = new JFileChooser();
                chooser.setFileFilter(new FileNameExtensionFilter("Wallet file ", "wallet"));

                if (isOpen) {
                    JOptionPane.showMessageDialog(null, "A wallet is open, close it before loading another wallet please.");

                } else {

                    int op = chooser.showOpenDialog(null);
                    if (op == JFileChooser.APPROVE_OPTION) {
                        f = chooser.getSelectedFile();
                        try {
                            input = new FileInputStream(f);
                            ObjectInputStream in = new ObjectInputStream(input);
                            w = (Wallet) in.readObject();
                            if (w == null) {
                                open.setEnabled(false);
                                create.setEnabled(true);
                                save.setEnabled(false);
                            } else {
                                open.setEnabled(true);
                                create.setEnabled(false);
                                save.setEnabled(true);
                            }
                            in.close();
                            input.close();
                        } catch (FileNotFoundException ex) {
                            Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);
                        } catch (IOException ex) {
                            Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);
                        } catch (ClassNotFoundException ex) {
                            Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                }
            }
        });
        return load;
    }