private void createButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createButtonActionPerformed
        try {
            String subject = subjectTextField.getText();
            String description = descriptionTextField.getText();
            ArrayList<String> options = new ArrayList(Arrays.asList(optionTextField.getText().split(",")));
            for(String option : options) {
                option = option.trim();
            }
            String priority = priorityComboBox.getSelectedItem().toString();
            int month = Integer.valueOf(monthComboBox.getSelectedItem().toString());
            int day = Integer.valueOf(dayComboBox.getSelectedItem().toString());
            int year = Integer.valueOf(yearComboBox.getSelectedItem().toString());
            Date expiration = new Date(year, month, day);

            boolean success = false;
            if (this.proposal != null && this.proposal.getId() > -1) {
                this.proposal.setDescription(description);
                this.proposal.setSubject(subject);
                this.proposal.setOptions(options);
                this.proposal.setExpirationDate(expiration);
                this.proposal.setOptions(options);
                this.proposal.setPriority(Proposal.getPriorityLevel(priority));
                success = ProposalLogic.updateProposal(this.proposal);
            } else {
                success = ProposalLogic.createProposal(expiration, subject, description, priority, options);
            }

            if (success){
                JOptionPane.showMessageDialog(this,
                   "Proposal successfully created!");
                FOTE.getMainFrame().loadProposals();
                this.dispose();
            }
            else {
                JOptionPane.showMessageDialog(this,
                   "Proposal creation failed!");
            }
        } catch (java.lang.NumberFormatException e) {
            // TODO : Show error on input
        }


    }//GEN-LAST:event_createButtonActionPerformed