Fix for not being able to copy the password from the password field.
This commit is contained in:
parent
806a07135a
commit
3932857c21
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user