🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
8 messages
8 total messages Started by Alexei A. Akimov Thu, 29 Jul 2004 12:10
JTextArea problem
#826
Author: Alexei A. Akimov
Date: Thu, 29 Jul 2004 12:10
13 lines
1494 bytes
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
Re: JTextArea problem
#981
Author: Tad Frysinger
Date: Fri, 06 Aug 2004 15:15
20 lines
1848 bytes
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)
Re: JTextArea problem
#982
Author: Alexei A. Akimov
Date: Mon, 09 Aug 2004 11:16
31 lines
2235 bytes
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.
Re: JTextArea problem
#983
Author: Tad Frysinger
Date: Tue, 10 Aug 2004 20:49
40 lines
2583 bytes
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)
Re: JTextArea problem
#985
Author: Alexei A. Akimov
Date: Wed, 11 Aug 2004 08:37
51 lines
2925 bytes
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.
Re: JTextArea problem
#986
Author: Tad Frysinger
Date: Wed, 11 Aug 2004 12:26
60 lines
3172 bytes
Alexei A. Akimov wrote:
> 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.
> 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4202291

Tad Frysinger (TeamB)
Re: JTextArea problem
#989
Author: Alexei A. Akimov
Date: Wed, 11 Aug 2004 18:30
65 lines
3224 bytes
Tad Frysinger ?????:
> Alexei A. Akimov wrote:
> 
>> 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.
>>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4202291
> 
> Tad Frysinger (TeamB)
Thank You.
Re: JTextArea problem
#991
Author: 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.
>
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