"deprecated API" error
hi, this is my first post!
i get this error when i try to compile my program:
Note: C:\project\LightGame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
i think the function with the problem is the following one:
publicboolean mouseUp(Event event,int x,int y){
if (end == 1){
init();
update(getGraphics());
}else{
if (x > 210 && x < 270 && y > 165 && y < 185){
init();
update(getGraphics());
}
int column = (int)(x / (WIDTH / 5));
int row= (int)(y / (WIDTH / 5));
board[column][row] = -board[column][row];
try{
board[column+1][row] = -board[column+1][row];
}catch(Exception e){
}
try{
board[column-1][row] = -board[column-1][row];
}catch(Exception e){
}
try{
board[column][row+1] = -board[column][row+1];
}catch(Exception e){
}
try{
board[column][row-1] = -board[column][row-1];
}catch(Exception e){
}
countLight();
if (end == 0){
update(getGraphics());
}
}
returntrue;
}
i think this is the function with the problem because when i deactivate
it (make it //comment) compiler does show up the error.
I can't understand what is that error and how to fix it...i am new in Java
programming...
If it's nessasary i can post the whole program but i didn't want to flood
my post. If anyone wants the whole program just tell me and i will post
it!
thanks alot!

