Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1178

Re: JTextPane line wrap c

From "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this>
Subject Re: JTextPane line wrap c
Message-ID <UKOdnSHFu5GIy2TYnZ2dnUVZ_u-unZ2d@comcast.com> (permalink)
Newsgroups comp.lang.java.gui
References <1173891853.202753.216660@e1g2000hsg.googlegroups.com>
Date 2011-04-27 15:31 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

<reinhard.engels@gmail.com> wrote in message 
news:1173891853.202753.216660@e1g2000hsg.googlegroups.com...
> For several years, I've been displaying marked up DNA and RNA in a
> JTextPane. It's worked great. I can mark up interesting substrings
> with different fonts or background colors and it wraps like you'd
> expect -- at the edge of the component.
>
> All of a sudden, users with the latest JRE on windows (1.5.0_10) are
> seeing line breaks at at what looks like "style change" points. It's
> as if instead of breaking at the character closest to the edge of the
> component, the JTextPane now in this version thinks it can break at
> "style boundaries."

I can confirm the bug, and that it doesn't happen in 1.5.0_09.
It looks similar to
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4948033
The example in that bug report also shows incorrect line breaks
under newer versions of Java when the i18n property is false,
though the incorrect breaks are not exactly the same as with
i18n true. I suggest that you report this as a new bug.

As far as a solution to your problem goes, you may need to
lock your users into a specific version of Java, or go looking
for a JTextPane replacement.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

JTextPane line wrap chang "reinhard.engels" <reinhard.engels@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: JTextPane line wrap c "reinhard.engels" <reinhard.engels@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: JTextPane line wrap c "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
    Re: JTextPane line wrap c "reinhard.engels" <reinhard.engels@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
      Re: JTextPane line wrap c "reinhard.engels" <reinhard.engels@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000

csiph-web