Possible duplicate:How to determine if droplet lock is switched to Swing?
How to determine (method to know) whether caplock is enabled or not in a java application because I want to see the user when the user enters a password in my application.
boolean state= Toolkit.getDefaultToolkit() .getLockingKeyState(KeyEvent.VK_CAPS_LOCK);
boolean capsIsOn = Toolkit.getDefaultToolkit(). getLockingKeyState(KeyEvent.VK_CAPS_LOCK);
Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK);
Related: How can I get the state of Caps Lock and enable it if it has not been?
Use Google before asking, please;)
boolean isCapsLock = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK);
Source: https://habr.com/ru/post/919576/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/919571/copy-lucene-indexes-between-jackrabbit-repositories&usg=ALkJrhgto8d2zTyRifVQRMGE4JkOx9T1ogAm I using the Fourier transform correctly? - matlabHow to make tags horizontally placed in a div? - htmlCan Sonatype Nexus be configured to limit which artifacts a user can deploy? - mavenC # asp.net getting username - c #Is it possible to access Controller / Action attributes from a message handler? - asp.net-web-apiSecuring MongoDB in the Cloud - sslWhat is the correct pattern for implementing TCP framing? Is this a stack of filters? - c #AJAX / Reverse AJAX: polling or clicking? - ajaxHow to avoid page refresh after selectedindexchanged from the drop-down list? - vb.netAll Articles