public static void finish(String message) {       
        
        try {
            after = System.currentTimeMillis();
            
            String output = "Completed " + message + NEWLINE;
            console.append(output);
            console.append("Operation took: " + (after - before)/1000.0 + " seconds." + NEWLINE);
            
            int pos = console.getText().lastIndexOf(output);
            console.getHighlighter().addHighlight(pos,
                    pos + output.length(),
                    new DefaultHighlighter.DefaultHighlightPainter(GREEN));
            
            scrollToBottom();
        } catch (BadLocationException ex) {
            System.out.println(ex.getMessage());
        }
        
    }