Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1173
| From | "reinhard.engels" <reinhard.engels@THRWHITE.remove-dii-this> |
|---|---|
| Subject | JTextPane line wrap chang |
| Message-ID | <1173891853.202753.216660@e1g2000hsg.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:31 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui 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." Screenshots here showing how my app looks in jar 1.5.0_4 (good) and 1.5.0_10 (bad): http://everydaysystems.com/usenet/JTextPane/ Is this a bug in the new release of JTextPane? Or is this an intentional new feature? I can't find anything about it. As I mentioned, all previous versions of the JRE I have access to on PCs and mac work fine, it's just windows jre version 1.5.0_10. Fingers crossed that this is a bug that will be quickly fixed by sun because everything I've found on manually overriding JTextPane line breaking sounds like a nightmare... Many thanks in advance to anyone who takes a look at this! Reinhard --- * 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 | Next — Next in thread | Find similar | Unroll 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