public void previewFile (String filePath) {
        Ctabinterface singleSource = null;
        String fileName = null, callableFunction = null;
        if (filePath == null) {
            synchronized (tabbedPaneLocker) {
                singleSource = (Ctabinterface) tabbedPane.getSelectedComponent();
            }
            if (singleSource != null) {
                synchronized (singleSource.sourceNameLocker) {
                    if (singleSource.sourceName != null) {
                        fileName = singleSource.sourceName;
                    }
                }
            }
        } else fileName = filePath;
        if (fileName != null) {
            consolePane.appendText("("+System.getProperty("os.name")+" platform detected)", false);
            if (System.getProperty("os.name").toLowerCase().contains("mac")) {
                fileName = fileName.replace(" ", "\\ ");
                callableFunction = "open -a "+configurationInterface.previewInterface.completePath.replace(" ", "\\ ")+" "+fileName;
            } else callableFunction = "\""+configurationInterface.previewInterface.completePath+"\" \""+fileName+"\"";
            try {
                Process newProcess = Runtime.getRuntime().exec(callableFunction);
                BufferedReader outputSet = new BufferedReader(new InputStreamReader(newProcess.getInputStream()));
                BufferedReader errorSet = new BufferedReader(new InputStreamReader(newProcess.getErrorStream()));
                String singleton;
                int messages = 0;
                while ((singleton = outputSet.readLine()) != null) {
                    consolePane.appendText(singleton, false);
                    messages++;
                }
                while ((singleton = errorSet.readLine()) != null) {
                    consolePane.appendText(singleton, true);
                    messages++;
                }
                if (messages <= 0) 
                    consolePane.appendText("no messages from your Browser", false);
                outputSet.close();
                errorSet.close();
            } catch (Exception ext) {
                Cerrorinterface bck = new Cerrorinterface("PREVIEERR", false);
            }
        }
    }