How can I get the DEL char from keyboard?
If I use the I/O API I must wait the return to get the char but so I always get the ASCII code 10 or 13...
Thanks.
How can I get the DEL char from keyboard?
If I use the I/O API I must wait the return to get the char but so I always get the ASCII code 10 or 13...
Thanks.
Use key Listener.
public void keyTyped(KeyEvent ke)
{
if(ke.getKeyChar()== ke.VK_DELETE)
{
//do something
}
}
Here is a tutorial how you can do that.