private void save()
    {
        try 
        {
            OutputStream output = new FileOutputStream("Data/settings.ser");
            OutputStream buffer = new BufferedOutputStream(output);
            ObjectOutputStream objectOutputStream = new ObjectOutputStream(buffer);
            
            objectOutputStream.writeObject(settingsData);
            
            objectOutputStream.close();
            
        } 
        catch (Exception ex)
        {
            ex.printStackTrace();
        }
        
        if (!windowed && settingsData.getWindowed()) // if it wasn't windowed origionaly.
        {
            settingsChangedListener.exitedFullScreen();
        } 
        else if (windowed && !settingsData.getWindowed())
        {
            settingsChangedListener.enteredFullScreen();
        }
        
        if (!graphicsLow && settingsData.getGraphicsQualityLow()) // " "
        {
            settingsChangedListener.settingsChangedToLow();
        } 
        else if (graphicsLow && !settingsData.getGraphicsQualityLow())
        {
            settingsChangedListener.settingsChangedToHigh();
        }
    }