Esse método funciona quando eu estou dentro da aplicação Netbeans mais quando mando construit na dist não funciona aperto [F1] e nada o
que será?
protected void dispatchEvent(AWTEvent event)
{
super.dispatchEvent(event);
String a[];
String tecla[];
if(!event.paramString().equals(""))
{
// System.out.println(event.paramString().substring(0, 5));
if(event.paramString().substring(0, 5).equals("KEY_P"))
{
a= event.paramString().split(",");
tecla = a[1].split("=");
switch (Integer.parseInt(tecla[1]))
{
case 112://Pressionou F1
new Admi().show();
break;
case 113://Pressionou F2
new Admi().show();
JOptionPane.showMessageDialog(null,"F2");
break;
case 114://Pressionou F3
new Admi().show();
JOptionPane.showMessageDialog(null,"F3");
break;
case 115://Pressionou F4
new Admi().show();
JOptionPane.showMessageDialog(null,"F4");
break;
case 116://Pressionou F5
// JOptionPane.showMessageDialog(null,"Pressionou F5!");
break;
default:
break;
}