JPasswordField KeyPress string length error?

后端 未结 5 1490
名媛妹妹
名媛妹妹 2020-12-20 21:04

I am trying to change background colors of a JPasswordField in Java Swing (Netbeans).

Here\'s what I have:

private void pstxtPasswordKeyPressed(java.         


        
5条回答
  •  臣服心动
    2020-12-20 21:26

    I solved the problem by using KeyRelease instead of KeyPress, try it out my friend

提交回复
热议问题