<AWT Dev> Review request: JDK-8055197 TextField deletes multiline	strings
    Ambarish Rapte 
    ambarish.rapte at oracle.com
       
    Fri Sep 18 14:41:46 UTC 2015
    
    
  
Hi,
                Please review the following fix for jdk9.
            Bug:         https://bugs.openjdk.java.net/browse/JDK-8055197
            Webrev:  http://cr.openjdk.java.net/~psadhukhan/ambarish/8055197/webrev.00/
 
Issue:
-          If text containing new line character is set to TextField, Text after new line character was terminated.
-          Issue occurs only on windows.
 
Cause:
-          For windows new line character is   '\r\n'.
-          For windows code this new line character was not replaced by space character.
 
Fix:
-          Declared a new virtual method RemoveEOL() in awt_TextComponent.h similar to RemoveCR()
-          Implemented this RemoveEOL()  method only for awt_TextField,  which will remove  '\r\n' from input string for TextField
 
 
 
 
Many Thanks,
Ambarish Rapte
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20150918/f06546da/attachment-0001.html>
    
    
More information about the awt-dev
mailing list