if (SwingUtilities.isRightMouseButton(e)) { return; }
  private void jbInit() throws Exception  {      this.setLayout(borderLayout1);//      this.setOpaque(false);//      setDoubleBuffered(true);      s.setOpaque(false);      s.setDoubleBuffered(false);      session.setGUI((SessionGUI)this);//      screen = new Screen5250(this,sesConfig);      screen = session.getScreen();      this.addComponentListener(this);      if (bi == null) {         checkOffScreenImage();      }      setRubberBand(new TNRubberBand(this));      keyHandler = KeyboardHandler.getKeyboardHandlerInstance(session);      if (!sesConfig.isPropertyExists("width") ||         !sesConfig.isPropertyExists("height"))         // set the initialize size         this.setSize(bi.getPreferredSize());      else {         this.setSize(sesConfig.getIntegerProperty("width"),                        sesConfig.getIntegerProperty("height"));      }      addMouseListener(new MouseAdapter() {         public void mousePressed(MouseEvent e) {            /** @todo check for popup trigger on linux             *             *///            if (e.isPopupTrigger()) {            // using SwingUtilities because popuptrigger does not work on linux            if (SwingUtilities.isRightMouseButton(e)) {               actionPopup(e);            }         }         public void mouseReleased(MouseEvent e) {//            System.out.println("Mouse Released");         }         public void mouseClicked(MouseEvent e) {               if (e.getClickCount() == 2 & doubleClick) {                  screen.sendKeys("[enter]");               }               else {         			int pos = bi.getPosFromView(e.getX(), e.getY());                  if (log.isDebugEnabled()) {                     log.debug((screen.getRow(pos)) + "," + (screen.getCol(pos)));                     log.debug(e.getX() + "," + e.getY() + "," + bi.columnWidth + ","                           + bi.rowHeight);                  }                  boolean moved = screen.moveCursor(e, pos);				      // this is a note to not execute this code here when we      				// implement the remain after edit function option.                  if (moved) {                     if (rubberband.isAreaSelected()) {                        rubberband.reset();                     }                     screen.repaintScreen();                  }                  getFocusForMe();               }         }      });      scroller = new SessionScroller().getScrollerInstance((SessionGUI)this);      if (!sesConfig.getStringProperty("mouseWheel").equals("Yes"))         scroller.removeMouseWheelListener((SessionGUI)this);		log.debug("Initializing macros");      macros = new Macronizer();      Macronizer.init();      keyPad.addActionListener(this);      if (sesConfig.getStringProperty("keypad").equals("Yes"))         keyPad.setVisible(true);      else         keyPad.setVisible(false);      // Warning do not change the the order of the adding of keypad and      //    the screen.  This will cause resizing problems because it will      //    resize the screen first and during the resize we need to calculate      //    the bouding area based on the height of the keyPad.      //    See resizeMe() and getDrawingBounds()      this.add(keyPad,BorderLayout.SOUTH);      this.add(s,BorderLayout.CENTER);      this.requestFocus();      jumpEvent = new SessionJumpEvent(this);      // check if double click sends enter      if (sesConfig.getStringProperty("doubleClick").equals("Yes"))         doubleClick = true;      else         doubleClick = false;//         DropTargetAdapter dta = new DropTargetAdapter() {//            public void drop(DropTargetDropEvent dtde) {//               Transferable tr = dtde.getTransferable();//               dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);//               DataFlavor[] dfs = dtde.getCurrentDataFlavors();//               if(tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {//                  try {//                     log.debug("dtde drop it2 ");////                     java.util.List fileList =//                        (java.util.List)tr.getTransferData(DataFlavor.javaFileListFlavor);//                        // implementation for when we are able to process a list//                        //   of files.//   //                   Iterator iterator = fileList.iterator();//   //                   if (iterator.hasNext()) {//   //                      File file = (File)iterator.next();//   //                   }//                     java.io.File file = (java.io.File)fileList.get(0);//                     System.out.println(file.toString());//                     dtde.dropComplete(true);//                     doTransfer(file);//                     return;//                  }//                  catch (UnsupportedFlavorException ufe) {//                     log.info("importData: unsupported data flavor");//                  }//                  catch (java.io.IOException ieo) {//                     log.warn("importData: I/O exception");//                  }//                  catch (Exception ex) {//                     log.warn(""+ex.getMessage());//                  }//                  finally {//                     dtde.dropComplete(false);//                  }//               }//            }//         };//         DropTarget dt = new DropTarget((JPanel)this,dta);////         setDropTarget(dt);   }