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
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
