I saw many Ludum Dare games, which are written in Java (using its standard library). I checked the code of one or two of them and the thing that I saw is in their Game class, they extend Canvas.
So my question is why would they extend Canvas, not JPanel?