🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Envoy Wed, 03 Mar 2004 11:15
S: turn off line wrap
#1262
Author: Envoy
Date: Wed, 03 Mar 2004 11:15
17 lines
1099 bytes
Hi,

im want to use a JTextPane in my programm.
Is there a way to turn off the automatic line wrap when the
text I typed reaches the end of the line?

With a JTextArea it is done with "setLineWrap(false)", but this
method doesn't exist in the JTextPane class. So how can I disable it?


Thanks for your help,
Andreas

-- 
-TheNewOne-

Mail: TheNewOne@freakmail.de
Re: S: turn off line wrap
#1266
Author: John McGrath [TeamB]
Date: Tue, 09 Mar 2004 20:10
22 lines
1748 bytes
On 3/3/2004 at 6:15:06 AM, Envoy wrote:

> im want to use a JTextPane in my programm.
> Is there a way to turn off the automatic line wrap when the
> text I typed reaches the end of the line?
> 
> With a JTextArea it is done with "setLineWrap(false)", but this
> method doesn't exist in the JTextPane class. So how can I disable it?

I am pretty sure there is no way to set a global line-wrapping property
for a JTextPane.  The model used by JTextPane (and JEditorPane) is far
more complex than that.  This is something like asking how to turn off
line wrapping for a web browser.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads