<Swing Dev> [9] Review Request for 8076164: [JTextField] When input too long Thai character, cursor's behavior is odd

Semyon Sadetsky semyon.sadetsky at oracle.com
Thu Jun 25 14:27:32 UTC 2015


Hello,

Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8076164
webrev: http://cr.openjdk.java.net/~ssadetsky/8076164/webrev.00/

It is a regression from 6973777. In 6973777 GlyphView minimum span with 
calculation was changed to use text wrapping into several lines. That 
was necessary to fix several JTextPane scenarios. But this change did 
not preserve the generic rule: if resizing is disabled in 
getResizeWeight() then the preferred size should be used as the minimum. 
Since originally the GlyphView was not resizable the fix broke 
JTextFiled's I18N view because text wrapping is not applicable to it by 
design.
The solution restores the logic for JTextFiled's I18N content view.

--Semyon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20150625/49778c57/attachment.html>


More information about the swing-dev mailing list