예제 #1
0
 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();
   }
 }
예제 #2
0
 private void hideClassSearchPopup() {
   if (classSearchPopup.isShowing()) {
     classSearchPopup.hidePopup();
   }
 }