private void ViewNotesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ViewNotesActionPerformed
        // File would not print to text field so use of modified code was used
        //*http://forums.netbeans.org/topic5234.html
        //*        


        File inFile;
        FileReader fr;
        BufferedReader br;
        JFileChooser chooser = new JFileChooser();
        chooser.setCurrentDirectory(new File("./"));
        int returnVal = chooser.showOpenDialog(ViewNotes);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            FileInputStream in = null;
            String Notes = "MathsNotes.txt";
            try {

                in = new FileInputStream(Notes);
                BufferedInputStream bin = new BufferedInputStream(in);
                ByteArrayOutputStream bout = new ByteArrayOutputStream();

                int iread = -1;
                while ((iread = bin.read()) != -1) {
                    bout.write(iread);
                }


                String Note = new String(bout.toByteArray());


                NotesTf.setText(Note);

            } catch (Throwable e) {//catch everything

                System.err.println(e);
                e.printStackTrace(System.err);
            } finally {

                try {
                    in.close();
                } catch (Throwable e) {
                }
            }
        }
    }//GEN-LAST:event_ViewNotesActionPerformed