Problem in saving while drag & drop in Mac(specific) Urgent !!!

The mothod below return the session object that is stored in the text file. after reteriving the i type cast the object accordingly.
The main problem is :-
this method works properly when i do normal save in my programme.
But when i drag the text from one swing component(jtextpane) and drop the text to another swing component(jtextpane) and then save session in file. While savinf it doesnt give me any error. but while reteriving object from file it gives me "NullPointerException" exception on
session = in.readObject();
this line.
same method is executing everytime for reteriving object from file it works. but im not able to understand only on drag and drop its not wrking properly.
private Object getSessionForFile(String fileName) {
Connection con=null;
Object session=null;
try{
String path = "c:/cases/"+fileName+".txt";
logger.debug(path);
FileInputStream fis = new FileInputStream(path);
ObjectInputStream in = new ObjectInputStream(fis);
session = in.readObject();
in.close();
//logger.debug(session.getSessionId());
}catch(Exception e){
e.printStackTrace();
logger.error(e,e);
logger.debug("Error reading the specified file.");
return session;
Can anyone help me.

Here is the stack trace for above problem
java.lang.NullPointerException
        at javax.swing.text.AbstractDocument$AbstractElement.readObject(AbstractDocument.java:2216)
ERROR [AWT-EventQueue-0] (OpenPatient.java:722) - java.lang.NullPointerException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
java.lang.NullPointerException
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at javax.swing.text.AbstractDocument$AbstractElement.readObject(AbstractDocument.java:2216)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at ui.OpenPatient.getSessionForFile(OpenPatient.java:717)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at ui.OpenPatient.btnOkActionPerformed(OpenPatient.java:583)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        Edited by: sunlover1984 on Mar 18, 2009 10:59 PM

Similar Messages

  • Lion: Trackpad-Gestures disabled while Drag&Drop

    Dear Community
    Since I have Lion on my MBA (late 2010), some gestures don't work anymore...
    e.g. when i want to move a file into a folder: on Snow Leopard, i dragged the file with the left hand on my trackpad, then i used two fingers of my right hand to scroll down and i dropped the file into the folder i wanted to move the file.. Worked like a charm...
    Now on Lion: when i'm dragging a file or something, all other gestures are disabled!! :-( is this a setting? Or am I the only one with this problem?
    Greetings from Switzerland
    - sirius

    EDIT:
    same problem here:
    https://discussions.apple.com/message/16426957#16426957
    sorry.. thread can be closed...

  • Problem when saving a PowerPoint 2008 for Mac file to PDF.

    When I save my PowerPoint 2008 for Mac file as a PDF, the text/font comes out wrong in the PDF -- kind of looks degraded (thinner, darker, more pixilated). I've tried changing the font in the PowerPoint file many times and tried saving it as a PDF both directly and through print -- but each time the text/font doesn't come through correctly in the PDF.  The images/photos in the PowerPoint file all convert to the PDF just fine.  Can anyone help?

    Hi KT!
    I have requested that a Host, relocate your Topic to a more appropriate Forum.
    As it will be transferred, it is not necessary for you to repost elsewhere, at this time.
    But for future reference, please review the first entry How To Post A New Topic, on Feedback About Discussions.
    That is the Forum where you erroneously posted your issue.
    ali b

  • Problem with fonts while printing PDF in MAC OS

    I have PDF file. It contains Cyrillic fonts and looks OK on the screen in MAC OS
    But during printing all labels are presented wrongly and not readable. I have tryied two options:
    1) Opened PDF in built-in MAC OS Viewer
    2) Downloaded and installed Acrobat Reader and printed from it
    Printing results by both methods are different, but in both cases text is not readable.
    Attaching screenshots (part of laptop screen) from laptop screen and printing results (scanned paper sheets)
    Printer: Cannon MP560 (with standard driver version 10.84.2.0)

    Max,
    Try Troubleshoot fonts | Mac OS X and go through each step.  You can probably skip step 1 as it's already displaying correctly.  Good luck.

  • ALV Grid Drag & Drop - Cell-specific

    Hi ABAPers,
    I've referred SAP Standard program / SDN forum and got some logic for ALV Drag & Drop for row-specific, Column-specific and for Trees. But I didn't get for Cell-specific.
    My requirement is :
    If the user drags a particular cell to another cell in an ALV-grid, then that Cell value should be copied to the 'Dropped-Cell' in the ALV Grid and should be saved to that particular Internal Table.I have referred the SAP standard program BCALV_DND_03 which does from a different tree to a cell. My requirement is from the same ALV grid Table.
    I've also referred BCALV_DND_04 which is useful. But here, it does it for the whole row.
    Can anyone please help me in this?
    Thanks a lot.
    Best Regards,
    Sowmya

    TOP INCLUDE:
    DATA: BEGIN OF g_t_plan_alv_m OCCURS 0,
             header,
             count(5).
            INCLUDE STRUCTURE g_ze6spw_plan_alv.
    DATA:    handle_style         TYPE lvc_t_styl,
             handle_dragdrop      TYPE lvc_t_drdr,
             tabcolor             TYPE lvc_t_scol.
    DATA: END OF g_t_plan_alv_m.
    CLASS cl_gui_resources DEFINITION LOAD.
    CLASS lcl_events_dragdrop DEFINITION DEFERRED.
    DATA:
         BEGIN OF g_ty_s_outtab OCCURS 0,
           header,
             count(5).
            INCLUDE STRUCTURE g_ze6spw_plan_alv.
    DATA:     handle_style         TYPE lvc_t_styl,
             handle_dragdrop      TYPE lvc_t_drdr,
             tabcolor             TYPE lvc_t_scol,
           END   OF g_ty_s_outtab.
    DATA: g_field TYPE lvc_fname.
    DATA:
          gr_events              TYPE REF TO lcl_events_dragdrop,
          gr_dragdrop            TYPE REF TO cl_dragdrop,
          gr_dragdrop_background TYPE REF TO cl_dragdrop.
    CLASS lcl_events_dragdrop DEFINITION.
      PUBLIC SECTION.
        DATA: m_grid TYPE i.
        METHODS:
         ondrag               FOR EVENT ondrag
                              OF cl_gui_alv_grid
                              IMPORTING e_row
                                        e_column
                                        es_row_no
                                        e_dragdropobj,
         ondrop               FOR EVENT ondrop
                              OF cl_gui_alv_grid
                              IMPORTING e_row
                                        e_column
                                        es_row_no
                                        e_dragdropobj,
         ondropcomplete       FOR EVENT ondropcomplete
                              OF cl_gui_alv_grid
                              IMPORTING e_row
                                        e_column
                                        es_row_no
                                        e_dragdropobj,
         ondropgetflavor      FOR EVENT ondropgetflavor
                              OF cl_gui_alv_grid
                              IMPORTING e_row
                                        e_column
                                        es_row_no
                                        e_dragdropobj
                                        e_flavors.
    ENDCLASS.                    "LCL_DRAGDROP DEFINITION
    *       CLASS lcl_dragdrop_obj DEFINITION
    CLASS lcl_dragdrop_obj DEFINITION.
      PUBLIC SECTION.
        DATA: line  LIKE g_ty_s_outtab,
              index TYPE i.
    ENDCLASS.                    "lcl_dragdrop_obj DEFINITION
    CLASS lcl_events_dragdrop IMPLEMENTATION.
      METHOD ondrag.
        PERFORM event_ondrag USING e_row
                                   e_column
                                   e_dragdropobj.
      ENDMETHOD.                    "ondrag
      METHOD ondrop.
        PERFORM event_ondrop USING e_row
                                   e_column
                                   e_dragdropobj.
      ENDMETHOD.                    "ondrop
      METHOD ondropcomplete.
        PERFORM event_ondropcomplete USING e_row
                                           e_column
                                           e_dragdropobj.
      ENDMETHOD.                    "ondropcomplete
      METHOD ondropgetflavor.
        PERFORM event_ondropgetflavor USING e_row
                                            e_column
                                            es_row_no
                                            e_dragdropobj
                                            e_flavors.
      ENDMETHOD.                    "ondropgetflavor
    ENDCLASS.  "LCL_objdragdropapp IMPLEMENTATION
    FORM set_drag_drop.
      DATA:  l_effect                     TYPE i,
             l_dragdrop_handle            TYPE i,
             ls_dragdrop                  TYPE lvc_s_dd01,
             ls_drag_cell                 TYPE lvc_s_drdr,
             lt_drag_cells                TYPE lvc_t_drdr,
             ls_fcat                      TYPE lvc_s_fcat,
             l_field                      TYPE lvc_fname,
             l_source                     TYPE char1,
             l_target                     TYPE char1,
             l_alv_exclude_tab            TYPE ui_functions,
             l_variant                    TYPE disvariant.
      FIELD-SYMBOLS: <fs_brcp>  TYPE zreceipt,
                     <fs_bisu>  TYPE z_supply.
      CREATE OBJECT gr_dragdrop.
      CREATE OBJECT gr_dragdrop_background.
      CREATE OBJECT gr_events.
      SET HANDLER gr_events->ondrag
                  FOR g_plan_alv.
      SET HANDLER gr_events->ondrop
                  FOR g_plan_alv.
      SET HANDLER gr_events->ondropcomplete
                  FOR g_plan_alv.
      SET HANDLER gr_events->ondropgetflavor
                  FOR g_plan_alv.
      LOOP AT g_t_plan_alv_m.
        MOVE-CORRESPONDING g_t_plan_alv_m TO g_ty_s_outtab.
        APPEND g_ty_s_outtab.
      ENDLOOP.
      l_effect = cl_dragdrop=>move + cl_dragdrop=>copy.
      CALL METHOD gr_dragdrop->add
        EXPORTING
          flavor     = 'Line'                                   "#EC NOTEXT
          dragsrc    = c_on
          droptarget = c_on
          effect     = l_effect.
      CALL METHOD gr_dragdrop->get_handle
        IMPORTING
          handle = l_dragdrop_handle.
      ls_dragdrop-cntr_ddid = l_dragdrop_handle. "auch bei leerem Grid
      ls_dragdrop-grid_ddid = space.
      ls_dragdrop-col_ddid  = space.
      ls_dragdrop-row_ddid  = space.
      ls_dragdrop-fieldname = 'HANDLE_DRAGDROP'.
      g_plan_layo-s_dragdrop = ls_dragdrop.
      LOOP AT g_t_mat_index.
    *Bulk Issues
            CONCATENATE c_plan_alvm c_bisu g_t_mat_index-index INTO l_field.
            ASSIGN (l_field) TO <fs_bisu>.
            CLEAR l_field.
    *Bulk Receipts
            CONCATENATE c_plan_alvm c_brcp g_t_mat_index-index INTO l_field.
            ASSIGN (l_field) TO <fs_brcp>.
            CLEAR l_field.
        ls_drag_cell-fieldname  = <fs_brcp>."l_field.
        ls_drag_cell-dragdropid = l_dragdrop_handle.
        INSERT ls_drag_cell INTO TABLE lt_drag_cells.
        CLEAR ls_drag_cell.
        ls_drag_cell-fieldname  = <fs_bisu>."l_field. 9th May
        ls_drag_cell-dragdropid = l_dragdrop_handle.
        INSERT ls_drag_cell INTO TABLE lt_drag_cells.
        CLEAR ls_drag_cell.
      ENDLOOP.
      DATA: l_index   TYPE i,
            l_erg     TYPE i.
      LOOP AT g_t_plan_alv_m.
        l_index = sy-tabix.
        l_erg = sy-tabix MOD 2.
        IF l_erg EQ 0.
          g_t_plan_alv_m-handle_dragdrop = lt_drag_cells.
          g_t_plan_alv_m-tabcolor        = lt_tabcolor.
          MODIFY g_t_plan_alv_m INDEX l_index "FROM ls_outtab
                           TRANSPORTING handle_dragdrop
                                        tabcolor.
        ENDIF.
      ENDLOOP.
      LOOP AT g_t_plan_alv_m.
        l_index = sy-tabix.
        l_erg = sy-tabix MOD 2.
        IF l_erg EQ 0.
          g_t_plan_alv_m-handle_dragdrop = lt_drag_cells.
          g_t_plan_alv_m-tabcolor        = lt_tabcolor.
          MODIFY g_t_plan_alv_m INDEX l_index "FROM ls_outtab
                           TRANSPORTING handle_dragdrop
                                        tabcolor.
        ENDIF.
      ENDLOOP.
      CALL METHOD g_plan_alv->set_table_for_first_display
        EXPORTING
          is_variant           = l_variant
          i_save               = g_save
          is_layout            = g_plan_layo
          it_toolbar_excluding = l_alv_exclude_tab[]
        CHANGING
          it_outtab            = g_t_plan_alv_m[]"gt_outtab_source[]
          it_fieldcatalog      = g_t_plan_fcat[].
    ENDFORM.                    " DRAGDROP
    FORM event_ondrag  USING    e_row         TYPE lvc_s_row
                                e_column      TYPE lvc_s_col
                                e_dragdropobj TYPE REF TO
                                                cl_dragdropobject. "#EC
      DATA:
            l_obj     TYPE REF TO lcl_dragdrop_obj.
      CREATE OBJECT l_obj.
      READ TABLE g_t_plan_alv_m INDEX e_row-index. "9thMay
      IF sy-subrc EQ 0.
        l_obj->line           = g_t_plan_alv_m."ls_outtab.
        l_obj->index          = e_row-index.
        e_dragdropobj->object = l_obj.
      ENDIF.
    ENDFORM.                    " EVENT_ONDRAG
    FORM event_ondrop  USING    e_row         TYPE lvc_s_row
                                e_column      TYPE lvc_s_col
                                e_dragdropobj TYPE REF TO
                                                 cl_dragdropobject. "#EC
      DATA: l_obj     TYPE REF TO lcl_dragdrop_obj,
            ls_outtab LIKE g_ty_s_outtab.
      CREATE OBJECT l_obj.
      IF e_row-index IS INITIAL.
        e_row-index = 1.
      ENDIF.
      CATCH SYSTEM-EXCEPTIONS move_cast_error = 1.
        l_obj ?= e_dragdropobj->object.
        ls_outtab = l_obj->line.
        MODIFY g_t_plan_alv_m INDEX e_row-index.
      ENDCATCH.
      IF sy-subrc <> 0.
        CALL METHOD e_dragdropobj->abort.
      ENDIF.
    ENDFORM.                    " EVENT_ONDROP
    *&      Form  EVENT_ONDROPCOMPLETE
    *      -->P_E_ROW  text
    *      -->P_E_COLUMN  text
    *      -->P_E_DRAGDROPOBJ  text
    FORM event_ondropcomplete  USING    e_row         type lvc_s_row
                                          e_column      type lvc_s_col
                                          e_dragdropobj type ref to
                                                  cl_dragdropobject."#EC
      data: l_obj      type ref to lcl_dragdrop_obj,
            ls_stable  type lvc_s_stbl,
            lr_grid    type ref to cl_gui_alv_grid.
      ls_stable-row = c_on."con_true.
      ls_stable-col = c_on."con_true.
      catch system-exceptions move_cast_error = 1.
        l_obj ?= e_dragdropobj->object.
      endcatch.
              lr_grid ?= e_dragdropobj->droptargetctrl.
              call method lr_grid->refresh_table_display
                exporting
                  is_stable = ls_stable.
    ENDFORM.                    " EVENT_ONDROPCOMPLETE
    *&      Form  EVENT_ONDROPGETFLAVOR
    *      -->P_E_ROW  text
    *      -->P_E_COLUMN  text
    *      -->P_ES_ROW_NO  text
    *      -->P_E_DRAGDROPOBJ  text
    *      -->P_E_FLAVORS  text
    FORM event_ondropgetflavor  USING    p_e_row
                                         p_e_column
                                         p_es_row_no
                                         p_e_dragdropobj
                                         p_e_flavors.
    ENDFORM.                    " EVENT_ONDROPGETFLAVOR

  • Problem with drag and drop on Mac

    Hi, when I run my AIR application on Windows, I'm able to do
    the drag and drop.
    But when I run the application on Mac, it gave me an
    allocation error: unable to allocate region of size <random
    number> after I drag and drop thrice.
    Anybody knows what's the reason?

    Pages does not support the Apple font used for color emoji, so that behavior is normal.
    With what app are you reading the yahoo mail?  There is really no guarantee than any other email service will show the special Apple font involved.
    You should have no problem putting emoji directly into Mail or Text edit via drag drop from the Character Viewer as shown below.
    You should also be able to upload graphics here easily by clicking on the camera icon.  My email is tom at bluesky dot org.

  • Javafx 2.1: Drag and Drop issue (Mac)

    Hi all,
    As I related in other question I've posted here today, I'm having some problems when running my code which worked on windows now that I'm on a mac. This one is related to drag and drop, it used to work on windows (Write once, debug everywhere!) but now the onDragDropped event is not being fired. Here's the code. Any help is appreciated. Thanks in advance
              HRWindowGridPane.setOnDragEntered(new EventHandler<DragEvent>() {
                   @Override
                   public void handle(DragEvent event) {
                        System.out.println("Drag entered");
                        lblPhoto.setEffect(finalBlend);
                        event.consume();
              HRWindowGridPane.setOnDragExited(new EventHandler<DragEvent>() {
                   @Override
                   public void handle(DragEvent event) {
                        lblPhoto.setEffect(null);
                        System.out.println("Drag exited");
                        event.consume();
              EventHandler<DragEvent> onDragOver = new EventHandler<DragEvent>() {
              public void handle(DragEvent event) {
              /* data is dragged over the target */
              /* accept it only if it is not dragged from the same node
              * and if it has a string data */
              if (event.getGestureSource() != HRWindowGridPane &&
              event.getDragboard().hasFiles()) {
              /* allow for both copying and moving, whatever user chooses */
              event.acceptTransferModes(TransferMode.ANY);
              System.out.println("Drag over");
              event.consume();
              HRWindowGridPane.setOnDragOver(onDragOver);
              HRWindowGridPane.setOnDragDropped(new EventHandler<DragEvent>()
                   @Override
                   public void handle(DragEvent event)
                        System.out.println("Drag dropping");
                        Dragboard db = event.getDragboard();
                        System.out.println("Drag dropped: got dragboard from event!");
                        if(db.hasFiles())
                             System.out.println("Drag dropped: dragboard has files!");
                             for(File file:db.getFiles())
                        if(file.getName().contains(".jpg") || file.getName().contains(".jpeg") || file.getName().contains(".JPG"))
                             Image img;
                                       try
                                            System.out.println("Everything is fine until image processing... hmmm");
                                            img = new Image(file.toURI().toURL().toString(), 118.0, 88.0, false, true);
                                            ImageView view = new ImageView(img);
                                            view.setFitWidth(118.0);
                                            view.setFitHeight(88.0);
                                            view.resize(118.0, 88.0);
                                            lblPhoto.setGraphic(view);
                                            avatarImage = file;
                                       catch (IOException e)
                                            e.printStackTrace();
                        else
                             AlertWindow alert = new AlertWindow("Falha", "O Arquivo não é uma imagem JPG válida");
                             try
                                  Stage stage = new Stage();
                                            alert.start(stage);
                                            stage.toFront();
                                            HRWindowGridPane.toBack();
                                            stage.centerOnScreen();
                                            stage.show();
                                       } catch (Exception e) {
                                            e.printStackTrace();
                        event.setDropCompleted(true);
                        event.consume();
              HRWindowGridPane.setOnDragDone(new EventHandler<DragEvent>() {
                   @Override
                   public void handle(DragEvent event)
                        System.out.println("Drag done");
              });

    Hi,
    I submitted this bug a while ago (http://javafx-jira.kenai.com/browse/RT-20253) hopefully it will be solved soon.
    Andy

  • JTree Drop Target Highlighting while dragging

    Hi All,
    I am having this requirement where I need to develop a similar interface as that of the Windows Explorer. I am facing problems in the JTree where one of the requirements say that I need to be able to highlight(select) a node when it is dragged upon although that might not be the drop target, very similar to Windows Explorer where while dragging a folder, even before dropping the folder on a target folder the drag selects all the nodes over which the drag moves.
    Also I need to be able to get a ghost image of the item being dragged, very similar to that of Windows explorer.
    If anybody out there knows how to achieve this Please help.
    Regards,
    Kumar GHH

    In the dragGestureRecognized (DragGestureEvent dge) method I am trying to set the cursor from default drag cursor to move cursor. But the move cursor is showing along with the default cursor with flickering. While dragging the image I just want to show the move cursor only.

  • Keyboard shortcuts while dragging-and-dropping?

    In Windows, when I'm dragging and dropping files from one folder to another, I can press keys on the keyboard to force it to change its behaviour -- for example, if I hold the Crtl key down, it will force it to copy files instead of move them.  Similarly, I can hold down the shift key to force it to move files when it wants to default to copying them.
    What is the equivalent keypress on a Mac running OS X 10.9.2?  It keeps moving files when I want to copy them (and vice-versa) and I just can't figure out which key(s) to press while dragging-and-dropping to make it change its behaviour.
    Thanks for your help,
    Laurence MacNeill
    Mableton, Georgia, USA

    Press the Option key to force a copy, or the Command key to force a move. Pressing both at once will create an alias.
    (103123)

  • SecurityException while drag and drop ??

    hi group,
    i am getting security Exception while drag and drop.
    Any body can find this bug...
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.awt.AWTPermission acceptDropBetweenAccessControllerContexts)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at sun.awt.windows.WDropTargetContextPeer.getJVMLocalSourceTransferable(Unknown Source)
    at sun.awt.windows.WDropTargetContextPeer.processEnterMessage(Unknown Source)
    at sun.awt.windows.WDropTargetContextPeer.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.Dialog.show(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    thank u..

    hi,
    your problem might be due to any of the following
    1. No java 2 plugin - install it.
    2.drag & drop between AWT & Swing Frames(windows)
    3. Add the following text to your java.policy file and restart your computer.
    grant {
    permission java.awt.AWTPermission "accessEventQueue";
    permission java.awt.AWTPermission "setDropTarget";
    permission java.awt.AWTPermission "accessClipboard";
    permission java.awt.AWTPermission "acceptDropBetweenAccessControllerContexts";
    permission java.awt.AWTPermission "listenToAllAWTEvents";
    please let me know if this works.
    good luck

  • How do you drag and drop using mac laptop?

    how do you drag and drop using mac laptop?

      As said above, you can click down, ons use the other finger to drag the object.  I had turned on the setting to use three-finger drag, so you can drag objects with three fingers.  To change gesture settings, go to the system preferences>trackpad.  Here you can also see all of the gestures of Mac OS X.

  • Home Sharing between Mac & PC - Can't drag & drop from one to the other.

    I have a Mac & a PC. I turned on home sharing and it works well, except that I want to copy all of the music on the Mac over to the PC. With Home Sharing active, you should be able to drag & Drop, but I can't. I read the help article and it says that the computer icon of the remote computer that you are sharing from should be in the left pane under Shared in iTunes. I don't see this. I only see my library.
    Any suggestions?

    these reads may be helpful:one and two.
    JGG

  • PSE7 with Windows 7 - Drag & Drop Problems

    Hello,
    have some people experince in PSE 7 with OS Windows 7?
    I have some problems with the Drag & Drop function. If I drag a picturce from the explorer into PSE7, PSE7 freeze and need two minutes to come back. Have somebody any idea / solution?
    --> No updates available for the product (PSE7)
    Greetings Daniel

    Hi, It works good for me. can you please make sure that the file you are dragging is not too large or is not currupt. can you please confirm that it is opening fine in other applications like Windows picture viewer?

  • Drag drop images while composing the forum post

    Hi All,
    Many time I felt like it would be good if we can drag drop images to the forum post being composed.  Similar to Gmail compose, if NI forum composition page also has that drag drop feature, it would be great.  But I'm wondering if it's only me or other people are also out there looking for this feature.
    Thanks,
    Ajay.

    Francois,
    I have tried to implement this bean but I'm having problems. I've been using your
    LAF package for almost 4 years now without issue. I tried the jar file from the zip
    file. I also created a new project and recompiled the java code against the 10.1.2.3
    frmall.jar file that matches our app server. I resigned it and it's still not working.
    Maybe I'm just missing something simple. When I compile and run the form, I see
    the canvas and I can change the text fields, but I don't see how I can drag and
    drop items. Hopefully, you can think of something that can fix our problem. I would
    love to be able to use drag and drop functionality in an upcoming application.
    We're running the following versions:
    App Server: 10.1.2.3
    DB: 10.2.0.5
    JDev: 10.1.3.3.0
    Windows XP for the clients
    Windows Server 2008 for the servers
    Thanks,
    Jason
    Edit: I looked in my java console and saw that my issue was that we signed this jar file with a different certificate. I created a special config as Francois has suggested in another post and included only the DnD.jar file and it worked. However, I can't get the image or multi-line text areas to drag and drop. I'll keep poking around and see if I can figure out what's going on. The console seems to recognize when I'm dragging and dropping from all fields.
    Edited by: hanszarkov on Jun 27, 2011 12:58 PM

  • Strange Problem Drag & Drop Between Lists

    In the following code, drag & drop is set to copy objects, but when more than one instance of an item exists, only the last item (highest data provider index) item can be selected. Any idea why this is happening, and how to correct this?
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          [Bindable] private var srcAC:ArrayCollection = new ArrayCollection();
          [Bindable] private var destAC:ArrayCollection = new ArrayCollection();
          private function init():void{
            srcAC = new ArrayCollection(['Fish', 'Meat', 'Chicken']);
            destAC = new ArrayCollection();
          private function displayData():void{
            trace("****************************************");
            trace("menuList dataProvider:");
            for each(var srcItem:Object in srcAC){
              trace("\t" + srcItem.toString());
            trace("----------------------------------------");
            trace("orderList dataProvider:");
            for each(var destItem:Object in destAC){
              trace("\t" + destItem.toString());
        ]]>
      </mx:Script>
      <mx:HBox>
        <mx:VBox>
          <mx:Label text="Today's Menu" fontWeight="bold" fontSize="14"/>
          <mx:List id="menuList" width="200" dataProvider="{srcAC}"
            dragEnabled="true" dropEnabled="true" dragMoveEnabled="false"
            allowMultipleSelection="true" fontSize="14"/>
        </mx:VBox>
        <mx:VBox>
          <mx:Label text="Your Order" fontWeight="bold" fontSize="14"/>
          <mx:List id="orderList" width="200" dataProvider="{destAC}"
            dragEnabled="true" dropEnabled="true" dragMoveEnabled="false"
            allowMultipleSelection="true" fontSize="14"/>
        </mx:VBox>
      </mx:HBox>
      <mx:Button id="b1" label="Reset Order" click="init();"/>
      <mx:Button label="Display Data Providers" click="displayData();"/>
    </mx:Application>

    Hello
    Actually I have also face this problem in one of my appliocation so have done some work arround for that.
    If we use object of ArrayCollection as 'key-value' (like- {label:'Fish'} ) pair than it work fine.
    srcAC = new ArrayCollection([ {label:'Fish'},{label:'Meat'},{label:'Chicken'}]);
    In case of
    srcAC = new ArrayCollection(['Fish', 'Meat', 'Chicken']);
    If we drop same item two times than list is not identify unique item of the list
    and if we use objet like- {label:'Fish'} than every item is unique for list.
    I m not sure this is right or not but it works fine.
    Also we need to set 'labelField' of list as per object.
    With Regards
    Virat Patel

Maybe you are looking for

  • Confirmation of sensitive filed of customer master

    Hi all Is that possible to BLOCK or NOT TO CREATE a sales order, if confirmation of sensitive filed of customer master yet to confirm ? Is that need user exit or can we do Configuration. Need your suggestions. Regards, Nagesh

  • Wsdl issue

    Hi All, I have a SOAP-XI-RFC scenario. I created WSDL from the wizard and when i test it from .Net client i am getting "unable to import binding from Namespace" when i test the same wsdl with Soapsonar i am not getting any errors. I am not getting wh

  • Workbooks at OS level

    Hi Experts, Is it possible locate the workbooks saved by users at OS level filesystem? The reason we need to find this because we had a workbook container role where users had created own folders and saved workbooks. But recently role got changed in

  • Macbook Pro camera slow/laggy?

    I have a relatively new Macbook Pro Model A1398 Mid 2014 and the built in camera is very slow and lags. For example, if I wave my hand over the camera, I could see the slow movement of my hand and even after I finish waving, on the screen, I would st

  • Notification center trackpad gesture bug

    After update to Yosemite, when I swipe trackpad left from the right edge to see the notification center, there is lag on it. Furthermore, when I swipe right to close this, it is not closed properly, but part of it still appears on the screen like the