From 3932857c2117b8a399fdcb4fa888e9dc1a6818ee Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Wed, 21 Jan 2015 09:07:57 -0500 Subject: [PATCH] Fix for not being able to copy the password from the password field. --- .../main/java/com/lyndir/masterpassword/gui/PasswordFrame.java | 1 + 1 file changed, 1 insertion(+) diff --git a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java index 0a484a93..3123ebb0 100644 --- a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java +++ b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java @@ -171,6 +171,7 @@ public class PasswordFrame extends JFrame implements DocumentListener { passwordField.setHorizontalAlignment( JTextField.CENTER ); passwordField.setAlignmentX( Component.CENTER_ALIGNMENT ); passwordField.setEditable( false ); + passwordField.putClientProperty( "JPasswordField.cutCopyAllowed", true ); passwordEchoChar = passwordField.getEchoChar(); passwordEchoFont = passwordField.getFont().deriveFont( 40f ); updateMask();