@Override
public void mouseReleased(MouseEvent e) {
    System.out.println("Mouse released");
    Point mouse = e.getPoint();
    isImPress = false;
    isExPress = false;
    isImHover = importHover(mouse.getX(),mouse.getY());
    isExHover = exportHover(mouse.getX(),mouse.getY());
    isImChose = !isExportError();
    repaint();
 
    if(isImHover) { // import dialog activated
        isImChose = false;
        System.out.println(isImChose);
        System.out.println(isExportError());

        JFileChooser chooseImport = new JFileChooser();
        int validImport = chooseImport.showOpenDialog(null);
        if(!isExportError()) {
            brainFilePath = "";
            isImChose = isExportError();
            isImHover = importHover(mouse.getX(),mouse.getY());
            isImPress = isImHover;
            System.out.println(brainFilePath);
            System.out.println(isExportError());
            repaint();
        }        
        if(validImport == JFileChooser.APPROVE_OPTION) {
            File holdImport = new File(chooseImport.getSelectedFile().getAbsolutePath());
            System.out.println(holdImport.toString());
            if(holdImport.exists()) {
                brainFilePath = holdImport.toString();
                isImHover = importHover(mouse.getX(),mouse.getY());
                isImPress = isImHover;
                isImChose = isExportError();
                repaint();
            }
            else {
                isImHover = importHover(mouse.getX(),mouse.getY());
                isImPress = isExportError();
                repaint();
            } 
        }
    }
 
    if(isExHover) { // export dialog activated
        if(isImChose) {
            JFileChooser chooseExport = new JFileChooser();
            int validExport = chooseExport.showSaveDialog(null);
            if(validExport == JFileChooser.APPROVE_OPTION)  {
                File holdExport = new File(chooseExport.getSelectedFile().getAbsolutePath());
                System.out.println(holdExport.toString());
                cFilePath = holdExport.toString();
                translateImport(brainFilePath,cFilePath);
                isImHover = importHover(mouse.getX(),mouse.getY());
                isImPress = isImHover;
                repaint();
             }
            else {
                isImHover = importHover(mouse.getX(),mouse.getY());
                isImPress = false;               
                repaint();            
            }   
        }
    }
}