private class Adapter extends keyAdapter
{
public void keyPressed(KeyEvent e)
{
int vk=e.getKeyCode();
switch(vk);
{
case KeyEvent.VK_0;
actions.doThat("0");
break;
case KeyEvent.VK_1;
actions.doThat("1");
break;
case KeyEvent.VK_2;
actions.doThat("2");
break;
case KeyEvent.VK_3;
actions.doThat("3");
break;
case KeyEvent.VK_4;
actions.doThat("4");
break;
case KeyEvent.VK_5;
actions.doThat("5");
break;
case KeyEvent.VK_6;
actions.doThat("6");
break;
case KeyEvent.VK_7;
actions.doThat("7");
break;
case KeyEvent.VK_8;
actions.doThat("8");
break;
case KeyEvent.VK_9;
actions.doThat("9");
break;
case KeyEvent.VK_PERIOD;
actions.doThat(".");
break;
}
}
}