The Minesweeper itself isn't 562 bytes long, but the java code is.
Here's the java code for the applet: O.java and
a more readable version.
I usually use more comments on the code ;-)
Playing instructions: - The bottom button resets the game and shows game status. - Clicking on a game button shows how many mines are in the surrounding tiles. - If you click on a mine game restarts.