I have a little doubt, how do I print a string inside a Text Panel with html
tags?
Example:
jtextpane.setText("<html><body><font color=#16a085 size=6> Hola a todos! </font></body></html>");
@Dev. Joel Aca attached the code
JFrame 1
private void impMouseClicked(java.awt.event.MouseEvent evt) {
linkedHashSet.addAll(arreglo);
arreglo.clear();
arreglo.addAll(linkedHashSet);
String a="";
for(int x=0; x<arreglo.size(); x++){
a+=arreglo.get(x) +" " + arr.get(x)+"\n";
}
try {
rs.impre(a);
} catch (JessException ex) {
Logger.getLogger(test_v.class.getName()).log(Level.SEVERE, null, ex);
}
imp.setVisible(false);}
JFrame2
public void impre(String res) throws JessException {
this.setVisible(true);
jtimp.setContentType("text/html");
jtimp.setText("<html><body><font color=#16a085 size=6><b>"
+ "A continuación se muestra el recorrido del árbol:<br> Síntomas: "
+ "Respuesta: <br></b></font>"+res+"</body></html>");
}