System.out.println("dtde drop it2 ");
log.debug("dtde drop it2 ");
  private void jbInit() throws Exception  {      this.setLayout(borderLayout1);//      this.setOpaque(false);//      setDoubleBuffered(true);      s.setOpaque(false);      s.setDoubleBuffered(false);      screen = new Screen5250(this,sesConfig);      this.addComponentListener(this);      if (!sesConfig.isPropertyExists("width") ||         !sesConfig.isPropertyExists("height"))         // set the initialize size         this.setSize(screen.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)) {               doPopup(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 {                  screen.moveCursor(e);                  repaint();                  getFocusForMe();               }         }      });      scroller = new SessionScroller().getScrollerInstance((Session)this);      if (!sesConfig.getStringProperty("mouseWheel").equals("Yes"))         scroller.removeMouseWheelListener((Session)this);      keyHandler = KeyboardHandler.getKeyboardHandlerInstance((Session)this);      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);      setRubberBand(new TNRubberBand(this));      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 {                  System.out.println("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) {                  System.out.println("importData: unsupported data flavor");               }               catch (java.io.IOException ieo) {                  System.out.println("importData: I/O exception");               }               catch (Exception ex) {                  System.out.println(ex.getMessage());               }               finally {                  dtde.dropComplete(false);               }            }         }      };      DropTarget dt = new DropTarget((JPanel)this,dta);      setDropTarget(dt);   }