surcharge la methode paint ou paintComponent de ton JTextPane ou JEditorPane de la façon suivante :import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JEditorPane;
public class MyTextPane extends JEditorPane {
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
super.paint(g);
}
Pour + d'info sur les rendering hints java2D
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/RenderingHints.html
bonne continuation ...