Thread View: borland.public.jbuilder.java.api
4 messages
4 total messages
Started by Richard
Wed, 23 Oct 2002 23:15
JEditorPane problem
Author: Richard
Date: Wed, 23 Oct 2002 23:15
Date: Wed, 23 Oct 2002 23:15
11 lines
1275 bytes
1275 bytes
Folks, Everytime we jEditorPane.setText (string) on the JEditorPane it cuts the words on the right margin in half in order to feed the next line. JTextArea has this WrapStyle setting that prevents this from happening but I can not find it in JEditorPane. Is there a solution to this problem? Thanks, Richard
Re: JEditorPane problem
Author: John McGrath TeamB
Date: Thu, 24 Oct 2002 09:46
Date: Thu, 24 Oct 2002 09:46
17 lines
1495 bytes
1495 bytes
On 23 Oct 2002 16:15:31 -0700, Richard wrote:
> Everytime we jEditorPane.setText (string) on the JEditorPane it
> cuts the words on the right margin in half in order to feed the
> next line. JTextArea has this WrapStyle setting that prevents
> this from happening but I can not find it in JEditorPane.
Did you read the replies to your message in the "swing" newsgroup?
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JEditorPane problem
Author: Richard
Date: Fri, 25 Oct 2002 23:55
Date: Fri, 25 Oct 2002 23:55
24 lines
1886 bytes
1886 bytes
John, yes I did read the reply but how do you create a listener that listens to "wrap events"? Last night I created a mouse listener without a problem but could not find one to detect wrap events. Thanks, Richard John McGrath [TeamB] <ng-b@JPMcGrath.net> wrote: >On 23 Oct 2002 16:15:31 -0700, Richard wrote: > >> Everytime we jEditorPane.setText (string) on the JEditorPane it >> cuts the words on the right margin in half in order to feed the >> next line. JTextArea has this WrapStyle setting that prevents >> this from happening but I can not find it in JEditorPane. > >Did you read the replies to your message in the "swing" newsgroup? > >-- >Regards, > >John McGrath [TeamB] > >--------------------------------------------------- >Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JEditorPane problem
Author: John McGrath TeamB
Date: Sat, 26 Oct 2002 06:37
Date: Sat, 26 Oct 2002 06:37
26 lines
2049 bytes
2049 bytes
On 25 Oct 2002 16:55:40 -0700, Richard wrote:
> John, yes I did read the reply
It would have been better to follow-up on that thread, rather then
start a new thread with the same question in a different newsgroup.
> how do you create a listener that listens to "wrap events"?
AFAIK, there is no such thing as a "wrap event".
In the thread in the Swing newsgroup, I suggested that you override
the getScrollableTracksViewportWidth() method to accomplish what you
described there. Did you try this, and if so did it work?
I have set follow-ups to borland.public.jbuilder.java.swing, since that
is a more appropriate place for this.
--
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