public void openFile()
    {
        if(_isOSX || ostype == ostype.Linux || ostype == ostype.Other)
        {
            openFile_OSX_Nix();
        }
        else
        {
            JFileChooser fc = new JFileChooser();
            fc.setDialogTitle("Open a Text File");
            fc.setFileFilter(new FileNameExtensionFilter("Plain Text Files", "txt"));
            int returnval = fc.showOpenDialog(this);
            if(returnval == 0)
            {
                hasSavedToFile = true;
                hasChanges = false;
                curFile = fc.getSelectedFile().getAbsolutePath();
                try(FileInputStream stream = new FileInputStream(curFile))
                {
                    String file = IOUtils.toString(stream);
                    mainTextArea.setText(file);
                    this.setTitle(String.format("JPad - %s", curFile));
                }
                catch(IOException ex)
                {
                    JOptionPane.showMessageDialog(this, ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
                }
            }
        }
    }