private void showClassSearchPopup() {
   if (!classSearchPopup.isShowing()) {
     Dimension size = getSize();
     Dimension ps = classSearchPopup.getPreferredSize();
     classSearchPopup.showPopup(
         this,
         size.width / 2 - ps.width / 2,
         size.height / 3 - ps.height / 2,
         ps.width,
         ps.height);
     classSearchField.selectAll();
   }
 }
 private void hideClassSearchPopup() {
   if (classSearchPopup.isShowing()) {
     classSearchPopup.hidePopup();
   }
 }