Quote:

public void anzeigeNachLinks() // should delete the last row and put in the previous

{

for(int x = 0; x < 40; x++)

{

for(int y = 0; y < 20; y++)

{

anzeige[x][y] = felder[x+linksoben-1][y];

}

}

linksoben--; // links oben = integer which tells you the number of the first row shown in the felder[][]

for(int x = 0; x < 40; x++)

{

for(int y = 0; y < 20; y++)

{

anzeige[x][y].nachRechtsBewegen(); // moves all squares 10px to the right

}

}

}

public void anzeigeNachRechts() // should delete the first one, and but in the next row

{

for(int x = 0; x < 39; x++) // 40?

{

for(int y = 0; y < 20; y++)

{

anzeige[x+1][y] = anzeige[x][y];

}

}

for(int y = 0; y < 20; y++)

{

anzeige[linksoben+39][y] = felder[linksoben+40][y];

}

linksoben++;

for(int x = 0; x < 40; x++)

{

for(int y = 0; y < 20; y++)

{

anzeige[x][y].nachLinksBewegen();

}

}

}

whats wrong here? ... :/ do you know?