This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JeditorPane Font

 
Meet Gaurav
Ranch Hand
Posts: 492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Campbell Ritchie
Sheriff
Pie
Posts: 47283
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread would sit better on the Swing forum. Moving.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic