<Swing Dev> [8] Review request for 7147078 [macosx] Echo char set in TextField doesn't prevent word jumping

Pavel Porvatov pavel.porvatov at oracle.com
Thu Jun 7 12:43:18 UTC 2012


Hi Alexander,

I agree with all the fix except the following change:

-            getDelegate().putClientProperty("JPasswordField.cutCopyAllowed",
-                                            getDelegate().echoCharIsSet()
-                                            ? Boolean.FALSE : Boolean.TRUE);
+            final boolean cutCopyAllowed;
+            final String focusInputMapKey;
+            if (echoChar != 0) {

Why getDelegate().echoCharIsSet() is replaced by "echoChar != 0"?

Regards, Pavel

>
> bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7147078
> changeset: 
> http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/4bf554db8ed9
> webrev: http://cr.openjdk.java.net/~alexp/7147078/webrev.00/
>
> This is a forward port of the issue which has not been automatically 
> ported from the JDK 7u4 to JDK 8.
>
>  The code changes for JDK 8 are identical to the ones in JDK 7u4.
>
> The issue is not reproduced in the JDK 8 with the applied patch.
>
> Thanks,
> Alexandr.
>

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


More information about the swing-dev mailing list