posted 14 years ago
Hi
I am loading a text file in the jeditorpane and then sending it to printer, But the jeditorpane is changing the font size and face. How to set the font size in jeditor pane
I tried this too .. Its not working
static {
UIDefaults uiDefaults = UIManager.getDefaults();
Font f = new Font("SansSerif", Font.PLAIN, 10);
Font font = new javax.swing.plaf.FontUIResource(f);
uiDefaults.put("JEditorPane.font", font);
}
Please assist me to change