I just saw some questions here, but none of them resolve the problem for me. I have got a JPasswordField
and I need that the user cannot input more than 4 digits in the EscPin JPasswordField
private void EscPinActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private javax.swing.JButton Entrar;
private javax.swing.JTextField EscNConta;
private javax.swing.JPasswordField EscPin;
private javax.swing.JLabel Logo;
private javax.swing.JLabel NConta;
private javax.swing.JLabel Pin;
private javax.swing.JButton Sair;