Use different requestFocus method.

This page

http://docs.oracle.com/javase/7/docs/
api/javax/swing/JComponent.html#requestFocus%28%29

recommends using JPanel.requestFocusInWindow instead of
JPanel.requestFocus.