File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JEditorPane weirdo

 
Chin Loong
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there guys,
need a bit of help. I'm using JEditorPane to display some text to be printed in content-type "text/html". The problem is, even though I specified the font size in the tag
[font size="-1"]
even though the font changes size accordingly, the height of the space that the font contained remains the same. To put it in simple terms, at first, the fonts were quite big, and my JEditorPane could only fit a certain number of lines (let's say 10). when I use [font] tag to make the fonts small, the fonts became small as expected *but* the JEditorPane *still* can only fit 10 lines. The height of the font itself became small, but when I click on the font, I noticed that the caret's size is still huge (only the character size change, the row size remains the same) and there's huge space in between rows. Now, how do I change that size?
Pls help, thanks
 
Chin Loong
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
top
can anybody help?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not having a problem with font sizes in the program below that I made to test for the problem you are describing. I'm using Java 1.3.1...



Could it be a problem with the HTML document you are opening?

-Nate
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic