public boolean keyDown(Event e, int keyValue)
{
switch (keyValue)
{
case e.F1 : setBackground(Color.red);
break;
case e.F2 : setBackground(Color.green);
break;
case e.F3 : setBackground(Color.blue);
break;
}
repaint();
return true;
}
本網頁由昱得資訊工作室製作(C)
Copyright Valor-Studio since in 1993