Set the search button as the default button of the JPanel. This allows you to search by clicking enter no matter what part of the GUI is focused.