private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        
        
         jFileChooser1 = new JFileChooser(".");

//Set the status
int status=jFileChooser1.showDialog(jLabel1, null);


   if (status == JFileChooser.APPROVE_OPTION) 
   {


        //Declare new file that will get the value from JFileChooser     
        File selectedFile   =   jFileChooser1.getSelectedFile();

        //Set new String value as the full file path
        String path1         =   selectedFile.getParent()+ "\\" + selectedFile.getName();
        // Note that "\\" is used instead of "\" because  '\' is the special chatacter. 
        // So, another '\' is needed as escape character.
        
        System.out.println(path1);
               c=new Calculate(path1);       
               path = path1;
    } 
   else if (status == JFileChooser.CANCEL_OPTION) 
   {
     
        System.out.println(JFileChooser.CANCEL_OPTION);
   }
        
        //JOptionPane.showMessageDialog(this, "Restaurant ID exists");
        
    }//GEN-LAST:event_jButton1ActionPerformed