Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTMLEditorKit and line wrapping




On Dec 1, 2006, at 4:26 AM, Geoff Levner wrote:


On 30 Nov 2006, at 22:01, Michael Hall wrote:


On Nov 29, 2006, at 9:30 AM, Geoff Levner wrote:

I found the answer to my own question, with help from the Sun Developer Forum. Rather that using HTMLEditorKit to write the HTML text, you can subclass HTMLWriter, overriding the canGetWrapLines() method so that it always returns false.

HTMLEditorKit.ParserCallback might be worth looking at sometime.

The problem occurs when writing the HTML, not when reading it, so I don't see how changing the parser could help...


Sorry, I didn't look at this closely enough and thought it was a display problem because of how it was read. My mistake.


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: HTMLEditorKit and line wrapping (From: Geoff Levner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.