private void editMatchButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editMatchButtonActionPerformed
        // TODO add your handling code here:
        
        try{
        matches.get(matchList.getSelectedRow());
        
        MatchTeamFrame frame = new MatchTeamFrame();
        frame.setMatchNumber(matchList.getSelectedRow());
        if((!"".equals(matches.get(matchList.getSelectedRow()).blue.interaction.getTeamName())) &&
                (!"".equals(matches.get(matchList.getSelectedRow()).blue.isolation.getTeamName())) &&
                (!"".equals(matches.get(matchList.getSelectedRow()).red.interaction.getTeamName())) &&
                (!"".equals(matches.get(matchList.getSelectedRow()).red.isolation.getTeamName()))){
            frame.setMatch(matches.get(matchList.getSelectedRow()));
        }
        
        frame.setBlueScore(matches.get(matchList.getSelectedRow()).blue.getScore());
        frame.setRedScore(matches.get(matchList.getSelectedRow()).red.getScore());
        
        
        
        
        frame.setSize(this.getWidth(), getHeight());
        frame.setLocation(this.getX(), this.getY());
        frame.setVisible(true);
        this.dispose();
        }catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Please Select a Match From the List", "ERROR", JOptionPane.ERROR_MESSAGE);
        }
        
        
    }//GEN-LAST:event_editMatchButtonActionPerformed