🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #991

Re: JTextArea problem

#991
From: Daniel
Date: Sun, 15 Aug 2004 04:46
66 lines
3642 bytes
Hi,

usually a very long paragraph will be really slow in Swing, regardless of
the version of the jdk used. I mean, a 2 k paragraph will be really slow,
while 1000 short paragraphs put in the same control will be very fast.

There's nothing to be done: are you sure you really nead paragraphs THAT
long?

Regards,
Daniel

"Alexei A. Akimov" <a.a.akimov@mail.ru> wrote in message
news:4119da83@newsgroups.borland.com...
> Tad Frysinger ?????:
> > Alexei A. Akimov wrote:
> >
> >> Tad Frysinger ?????:
> >>
> >>> Alexei A. Akimov wrote
> >>>
> >>>> Dear expert,
> >>>>
> >>>> I have a problem with JTextArea component. Suppose it is placed on a
> >>>> JScrollPane and contains 20 or 30 lines of text. If I positin the
> >>>> caret at the beginning of text and move it (using keyboard) down
> >>>> holding the Shift button down then I make some selection in the
> >>>> text. The problem is that the operation is very slow (program waits
> >>>> while the selection is being repainted). If I seelct the same
> >>>> fragment using mouse it is not slow. I use the default setting for
> >>>> the JTextArea component except LineWrap property is set true. Any
> >>>> ideas?
> >>>>
> >>>> Best regards,
> >>>> Alexei Akimov
> >>>>
> >>> Which JDK are you using? I can create a JTextArea in a JSCrollPane
> >>> using the 1.4.2_01-b06 JDK and I created 50 lines of text and did
> >>> various keyboard based selections. Seemed pretty snappy to me...
> >>>
> >>> Tad Frysinger (TeamB)
> >>
> >>
> >> Thank You,
> >>
> >> I use JDK 1.4.1_02=b06 for Linux, JBuilder 9. Yes I use the teaxt area
> >> insiade the JScrollPane. No special tunning of the components was
> >> performed. All the properties have their default values. May be some
> >> setting should be made?
> >>
> >> Best regards,
> >> Alexei Akimov.
> >>
> > Is your 20-30 lines of text actually all one line that is wrapped? There
> > are known problems with performance on longer single lines (although
> > usually these are in the hundreds, or at least dozens of lines).
> >
> > Tad Frysinger (TeamB)
> Thank You,
>
> You are right again, it is a long wrapped line of text. You wrote it is
> know problem, would You please give me some links.
>
> Best regards,
> Alexei Akimov.
>
Technical Details
Message-ID: <RrCdndk_uq0Md4PcRVn-rw@giganews.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <4108e77b@newsgroups.borland.com> <4113a09a$1@newsgroups.borland.com> <41175cc6@newsgroups.borland.com> <411934bc$1@newsgroups.borland.com> <4119da83@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,3ca3352f389bb44c
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 14 Aug 2004 23:46:08 -0500
From: "Daniel" <dgabrov1@yahoo.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <4108e77b@newsgroups.borland.com> <4113a09a$1@newsgroups.borland.com> <41175cc6@newsgroups.borland.com> <411934bc$1@newsgroups.borland.com> <4119da83@newsgroups.borland.com>
Subject: Re: JTextArea problem
Date: Sun, 15 Aug 2004 00:46:00 -0400
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <RrCdndk_uq0Md4PcRVn-rw@giganews.com>
Lines: 68
X-Trace: sv3-buStLc+PIhfZ84ovARjZTXRGBWDQqDb/8wfOBGA7wW77UhrkduL5uRV7WH1ui8tkiEbVpVt6NKJR9Tc!fszlFogD+RgUfH7OQPvOuEfAKC02lCvhnO7xUHEB10WxKALR/5RsHqlWbjoY9g==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.13