Re: Turning off line wrap in JTextPane
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Mon, 14 Nov 2005 15:22:24 GMT
"Wes Harrison" <nospam@xxxxxxxx> wrote in message
news:43755463$0$14265$5a62ac22@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> "Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message
> news:3h5df.106442$y_1.5383@xxxxxxxxxxx
>
>> The paragraph that I thought was relevant to your question reads as
>> follows:
>>
>> <quote>
>> If your text is unstyled, consider using a JTextArea instead. Otherwise,
>> you might need to implement your own component.
>> </quote>
>
> The text is most definitely styled so I do need to use JTextPane. I
> thought
> turning off line wrap would be a simple thing and not have to implement my
> own component just to do that.
I think Java's styled text is modelled around HTML 3.2, where you can't
really turn off line wrapping. If someone knows otherwise, maybe they can
chime in on this thread, but as far as I know, you'll have to write your own
component.
- Oliver
.
- References:
- Turning off line wrap in JTextPane
- From: Wes Harrison
- Re: Turning off line wrap in JTextPane
- From: Wes Harrison
- Re: Turning off line wrap in JTextPane
- From: Oliver Wong
- Re: Turning off line wrap in JTextPane
- From: Wes Harrison
- Turning off line wrap in JTextPane
- Prev by Date: Re: JTable combobox cell editor
- Next by Date: Re: JTable combobox cell editor
- Previous by thread: Re: Turning off line wrap in JTextPane
- Next by thread: JScrollPane does not show up
- Index(es):
Relevant Pages
|