public void openFOMusic() {
        try {
            if (fo.abreLeitura("musics.dat")) {
                musicsList = (ArrayList<Music>) fo.leObjeto();
                fo.fechaLeitura();
            }
        } catch (IOException e) {
            JOptionPane.showMessageDialog(null, "File not found",
                    "Erro de leitura de Ficheiro",
                    JOptionPane.ERROR_MESSAGE);
        } catch (ClassNotFoundException ex) {
            JOptionPane.showMessageDialog(null, "File is corrupt",
                    "File Error",
                    JOptionPane.ERROR_MESSAGE);
        }

    }