2
0

Fix for not being able to copy the password from the password field.

This commit is contained in:
Maarten Billemont 2015-01-21 09:07:57 -05:00
parent 806a07135a
commit 3932857c21

View File

@ -171,6 +171,7 @@ public class PasswordFrame extends JFrame implements DocumentListener {
passwordField.setHorizontalAlignment( JTextField.CENTER ); passwordField.setHorizontalAlignment( JTextField.CENTER );
passwordField.setAlignmentX( Component.CENTER_ALIGNMENT ); passwordField.setAlignmentX( Component.CENTER_ALIGNMENT );
passwordField.setEditable( false ); passwordField.setEditable( false );
passwordField.putClientProperty( "JPasswordField.cutCopyAllowed", true );
passwordEchoChar = passwordField.getEchoChar(); passwordEchoChar = passwordField.getEchoChar();
passwordEchoFont = passwordField.getFont().deriveFont( 40f ); passwordEchoFont = passwordField.getFont().deriveFont( 40f );
updateMask(); updateMask();