How do you know it's not working if you don't know what the result should be? ^_^;
I don't have Eclipse, or Java for that matter installed on this computer so I can;t compile this or anything but just looking at it,
Temp does not seem to be delcared, is it a global variable? Remember that capital letters are important in Java, A is not equal to a, Temp is not the same as temp.
And what is grille. I don;t understand what data type this could possibly be ^_^; is it a one dimension or 2 dimension integer array?