All pastes #564381 Raw Edit

f

public java v1 · immutable
·published 2007-06-13 15:54 UTC
rendered paste body
String[] initStyles =        		{ "large", "bold", "regular"        		};        try {        	String titulo = "Task results\n\n";			doc.insertString(doc.getLength(), titulo, doc.getStyle(initStyles[0]));		} catch (BadLocationException e) {		}        for(int i=0;i<resultados.size();i++){	        String[] initString =	        		{ 	"",	        			"Tarea número " + i + ": ",	        			resultados.get(i).idTarea + "\n" + "- Segundos en realizarla: " + resultados.get(i).getTTotal() + "\n"	        		};	        try {	            for (int j=0; j < initString.length; j++) {	                doc.insertString(doc.getLength(), initString[j], doc.getStyle(initStyles[j]));	            }	        } catch (BadLocationException ble) {	            System.err.println("Couldn't insert initial text into text pane.");	        }        }