Dopo il tuo

codice:
getContentPane().add(p);
//aggiungi
b.requestFocus();