I'm trying to set the font width in a JTextPane, but somehow I didn't find out how this could be done.
Here is the code I already have:
Font resultFont = new Font("Courier", Font.PLAIN, 12);
JTextPane resultPane = new JTextPane();
resultPane.setText(result);
resultPane.setFont(resultFont);
resultPane.setEditable(false);
add(resultPane);
It would be really cool, if there was any possibility to stretch the font, because I want to display some ASCII-Art.