void saveFormToTransition()
    {
       ArrayList<String> alphabet = getTransitionsInputArray(textInput.getText());
       if (alphabet.size() > 0)
       {
           int counter =  sim.autocompleteDFATransitions(alphabet,jComboChooseState.getSelectedIndex());
           setVisible(false);
           dFAMainWin.repaint();
           String k = "";
           if (sim.getDfa().getStartState() == null)
               k = "\nNOTE: You must define a start state in order to start the simulation!";
           JOptionPane.showMessageDialog(this, "The transitions are complete now. "+ counter+ " transition label(s) were added."+k,"Autocomplete",JOptionPane.INFORMATION_MESSAGE);
           dispose();           
       } else
       {
          JOptionPane.showMessageDialog(this, "Please enter at least one letter","Autocomplete",JOptionPane.ERROR_MESSAGE);
 
       }

    }