private void openMenuButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openMenuButtonActionPerformed
        if(openFC.showOpenDialog(this) == javax.swing.JFileChooser.APPROVE_OPTION)
        {
            File file = openFC.getSelectedFile();
            String str = "";
            try{
                Scanner s = new Scanner(file);
                try{
                    while(s.hasNextLine())
                        str+=s.nextLine();
                    if(str.length() != 81)
                        throw new IOException("Puzzle Not 9x9");
                    String[][] theGrid = new String[9][9];
                    for(int i=0; i<81; i++){
                        if(parseInt(""+str.charAt(i)) > 9 || parseInt(""+str.charAt(i)) < 0)
                                throw new IOException("Values in the Puzzle Are Too Big");
                        theGrid[i%9][i/9] = "" + str.charAt(i);
                    }
                    arrayToGrid(theGrid);
                }
                catch(Exception e){
                    javax.swing.JOptionPane.showMessageDialog(this, "There was a problem with the file:\n"+e);
                }
                finally{
                    s.close();
                }
            } catch(Exception e){
                javax.swing.JOptionPane.showMessageDialog(this, "The file could not be found:\n"+e);
            }
        }



}//GEN-LAST:event_openMenuButtonActionPerformed