private void jBEditMusicMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jBEditMusicMouseClicked
        if (p.getLogged() == null) {
            JOptionPane.showMessageDialog(this, "Please sign in to edit a music",
                    "ERROR", JOptionPane.ERROR_MESSAGE);
            return;
        }

        final JTable tabela = p.getPnTabelaMusica().getTblMusic();
        int rowIndex = tabela.getSelectedRow();
        this.m = p.getApp().searchMusic(p.getPnTabelaMusica().getCliqueMusica());
        //linhas seleccionada na tabela
        if (rowIndex != -1) {
            if (m.getCreatorEmail().equals(p.getLogged().getEmail())) {
                JdEditMusic jdEditMusic = new JdEditMusic(p, true);
                jdEditMusic.fillFields(m);
                jdEditMusic.setVisible(true);
            } else {
                JOptionPane.showMessageDialog(this, "You don´t have permission to change this music",
                        "ERROR", JOptionPane.ERROR_MESSAGE);
            }
        } else {
            JOptionPane.showMessageDialog(this, "Please select one music from the table",
                    "ERROR", JOptionPane.ERROR_MESSAGE);
        }
        p.getPnTabelaMusica().getModelo().fireTableDataChanged();
        update();
    }//GEN-LAST:event_jBEditMusicMouseClicked