How to check that key pressed is CapsLk.
if(e2.getKeyChar() == ?)
{
text_area.setText("CapsLk is pressed")
}
How to check that key pressed is CapsLk.
if(e2.getKeyChar() == ?)
{
text_area.setText("CapsLk is pressed")
}
if(e2.getKeyCode() == KeyEvent.VK_CAPS_LOCK){
text_area.setText("CapsLk is pressed");
}