Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JEditorPane weirdo  RSS feed

 
Ranch Hand
Posts: 45
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
top
can anybody help?
 
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!