コード例 #1
0
 /**
  * Method to setup the active panel
  *
  * @param p
  * @return
  */
 private boolean setActivePanel(Point p) {
   activePanel = null;
   Rectangle r = Imp.getBounds();
   if (r.contains(p)) activePanel = Imp;
   r = p1.getBounds();
   if (r.contains(p)) activePanel = p1;
   r = Op.getBounds();
   if (r.contains(p)) activePanel = Op;
   r = p3.getBounds();
   if (r.contains(p)) activePanel = p3;
   if (activePanel != null) return true;
   return false;
 }