I made a method mames "si()" in my CaretListener
"as" but I cant call it, the error says "cannot find symbol" somebody can tell me why I cannot find this method
public class FoxTable {
private boolean TECLADO=false;
public FoxTable(){
Accion();
}
private void Accion() {
CaretListener as=new CaretListener() {
@Override public void caretUpdate(CaretEvent e) {
TECLADO=true;
System.out.println(e.getDot()+" Dot");
System.out.println(e.getMark()+" Mark");
}
public boolean si(){
if(TECLADO){TECLADO=false;return true;}
return true;
}
};
KeyAdapter focus=new KeyAdapter() {
@Override public void keyPressed(KeyEvent e) {
switch(e.getKeyCode()){
case 10:
e.getComponent().transferFocus();
as.si();
break;
}
}
};
}
}
thanks for yours answers and advices!