private void viewResultsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewResultsButtonActionPerformed
        if(getProposal().getAuthor() == FOTE.getUser().getId() || ProposalLogic.isExpired(getProposal())){
            new ViewResults((Frame) this.getParent(), true, getProposal()).setVisible(true);
        }
        else{
             JOptionPane.showMessageDialog(this,
                "You are not the author of this proposal, you cannot view the results!\n" +
                     "Please wait until the proposal is expired.",
                "Error",
                JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_viewResultsButtonActionPerformed