You're using a draw() method, which doesn't actually tie into the Swing hierarchy. You're probably looking for the paint() method.

Better yet, you should probably be using the paintComponent()...