private void updateDialog(JTextPane area){
        for (String s : Main.programLogs){
            if (s.contains("#RED#")) {
                s = s.replace("#RED#", "");
                appendToPane(area, s + "\n", Color.RED);
            } else if (s.contains("#BLUE#")) {
                s = s.replace("#BLUE#", "");
                appendToPane(area, s + "\n", Color.BLUE);
            } else if (s.contains("#YELLOW#")) {
                s = s.replace("#YELLOW#", "");
                appendToPane(area, s + "\n", Color.ORANGE);
            } else if (s.contains("#BLACK#")) {
                s = s.replace("#BLACK#", "");
                appendToPane(area, s + "\n", Color.BLACK);
            }
        }
    }