JTextPane con superíndices y subíndices
Publicado por Roberto (2 intervenciones) el 14/03/2007 16:28:29
Necesito saber como puedo hacer para que éste componente me reconozca los subíndices u superíndices al cargar un archivo rtf, es decir, cuando hago:
JEditorPane epTexto = new JEditorPane();
RTFEditorKit rtf = new RTFEditorKit();
epTexto.setEditorKit(rtf);
FileInputStream fis = new FileInputStream("UnArchivo.rtf");
rtf.read(fis, epTexto.getDocument(), 0);
Me trae todo el texto al panel pero pierde los superíndices y los subíndices.
¿Hay alguna forma de hacerlo bien?
Gracias, por su ayuda.
JEditorPane epTexto = new JEditorPane();
RTFEditorKit rtf = new RTFEditorKit();
epTexto.setEditorKit(rtf);
FileInputStream fis = new FileInputStream("UnArchivo.rtf");
rtf.read(fis, epTexto.getDocument(), 0);
Me trae todo el texto al panel pero pierde los superíndices y los subíndices.
¿Hay alguna forma de hacerlo bien?
Gracias, por su ayuda.
Valora esta pregunta


0