classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: Prevent multiple lines in JTextField


From: Roman Kennke
Subject: Re: [cp-patches] FYI: Prevent multiple lines in JTextField
Date: Tue, 15 Nov 2005 14:34:18 +0100

Am Dienstag, den 15.11.2005, 11:27 +0100 schrieb Meskauskas Audrius:
> JTextField is always a single line component. In GNU Classpath, it is 
> possible to make it multi line by setting or pasting the line with line 
> feeds. While this is highly impressive, the Sun's implementation never 
> does this,


I disagree. As I pointed out (and implemented) in

http://lists.gnu.org/archive/html/classpath-patches/2005-10/msg00519.html

it is very well possible to display multiple lines in a JTextField, even
with the JDK. It is therefore wrong to replace the linefeeds in setText
or replaceSelection. If you have a specific problem, I would be thankful
if you could send me a testcase, so I can adjust the implementation
without breaking the 'filterNewlines' feature. For the time beeing,
could you please revert this patch?

/Roman

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]