What is an 'appropriate state' in DnD

When I use dnd, I get the exception
java.awt.dnd.InvalidDnDOperationException: The operation requested cannot be performed by the DnD system since it is not in the appropriate state
     at sun.awt.motif.MDragSourceContextPeer.startDrag(MDragSourceContextPeer.java:72)
     at java.awt.dnd.DragSource.startDrag(DragSource.java:279)
     at java.awt.dnd.DragSource.startDrag(DragSource.java:372)
...A number of people have asked about this,but no one's posted an explanation.
In particular, I'd like to know what an 'appropriate state' is for the DnD
system. I haven't been able to find an explanation of this in the api or
the tutorial website links.
Despite this exception, my DnD code does (usually work).
FYI my code is copied from the example on the DnD tutorial website. I'm running
IBM's 1.3.1 JDK under Linux (although I don't think this matters; people have
encountered this problem on other platforms).
Thanks,
bw

One possibility that comes to mind is that the DropTargetDropEvent.dropComplete(boolean success) method was not called on the last drop.
In my experience (Windows), failure to call this method at the end of a drop, regardless of success results in much worse problems than you are describing, but it does seem to fit the description of "appropriate state" i.e. you can't start a new drag before the last one has finished.
Just a thought.

Similar Messages

  • What are the appropriate document/stage dimensions in Flash for tablet optimized apps?

    What are the appropriate document/stage dimensions in Flash (width x height in pixels) for tablet optimized apps?
    (Dec. 2013)
    Using Flash and AIR for Android/iOS I would like to develop a educational interactive title optimized for tablet PCs, hopefully both the Android but finally also the iOS platforms. With so many tablets on the market today and with different resolutions (and even aspect ratios) I have difficulty deciding what document/stage size to set for my project/app. I have been experimenting with an Android Google Nexus 7 and Samsung Note 10 tablets and discovered that Android automatically resizes the app's stage to fully fit the screen of the tablet BUT this creates the following two issues for me:
    if the stage/document size in Flash is too small and I include bitmaps when the app's stage is enlarged to fit the tablet screen the bitmaps look pixelated.
    If I make the stage dimensions too big so that there is no bitmap pixelation because the bitmaps will be shrank instead of enlarged, I am afraid that on some older tablets with slower processors the app may be too slow to run (but I have to say that I did not experiment with very large stage dimensions yet).
    Until today I had looked at some of the most commonly used tablets on the market and their resolutions Google Nexus 7, Samsung Note, iPads etc and was inclined towards using a stage size of approximately 1280 x 720 pixels which I considered a medium solution, but now the new generation tablets came out (Nexus 7 gen 2, iPad Mini with Retina, iPad AIR etc) with much higher resolutions so I don't know what size to use now. Anybody has any suggestions?
    I would appreciate any ideas and suggestions on this matter.

    You explained your problem well enough that looking at the picture won't matter.  It looks like you found out too late that one of the first things you should do when you create a Flash file is set the movie properties, which include the dimensions and other things like background color, frame rate, publish settings, etc.  While the string that I just listed can pretty much be revised anytime, the dimensions should really be done before anything else, when possible.
    One way to go about resizing is to leave the file as is and specify the larger dimensions in the html page code.  This could end up reducing the quality of any bitmaps you might have in the file(s) since you would essentially be enlarging them, but any Flash drawn elements will resize cleanly.
    If you resize the stage, then you don't have much choice but to resize and relocate everything in it keyframe by keyframe.

  • What is largest solid state drive I can install in MacBook Pro 8,2?  I want to perform a clean install of Mavricks and dump my old hard drive.

    What is largest solid state drive I can install in MacBook Pro 8,2?  I want to perform a clean install of Mavricks and dump my old hard drive.

    If the bank account permits, I suggest getting a 1 TB SSD anyway.  One cannot have too much storage. 
    Unless you are having issues with your current installation, a 'clean' install is not necessary.  It would be more efficient to clone your current drive to the new SSD, test it, and then do the swap.  The installation of Mavericks over Snow Leopard can be done either before or after the cloning process.
    Ciao.

  • Where and what type of solid state drive should I buy for my early 2008 Mac Pro Desktop??

    where can I buy and what type of solid state drive should I use to upgrade my early 2008 Mac Pro Desktop??

    Rick,
    When you get a chance.... DSLReports is off line: their SQL server decided to take its indexes and access to data. Power. Not enough of the right kind of UPS. Same happened to StorageReview's "Drive Reliability Database" about 8-9 yrs ago.
    dslreports.com is offline
    Fri Apr 20 09:05:55 EDT 2012
    SSD: Loading CS5 plus other little monsters might matter.
    Lots of small I/Os
    latency of 1/100th where nanoseconds replace those "long" milliseconds
    System: Small and fast.
    DLLoyd even goes for short-stroking drives to get and maintain highest I/O
    The new 10k VRs hit 200MB/sec - I still use them and still find them useful, long lasting, feel responsive with whatever I ask of them. I know they get criticized and "cost too much"
    Just bought a new WD Black and yes it is better than the 2008 model I was using.
    600GB 10K $200 vs $150-220 for WD Black. your choice
    I can destroy a 7.2k drive, I have brought ever 10K drive back after a simple WD Extended Test in Lifeguard.
    I don't really care about $$/GB or I wouldn't have just bought Intel 128GB $149
    Database: the pros put the index in memory and page fix (virtual volumes in memory; cache; hold disk drive index in memory). Caching storage has been around for almost 40 yrs.
    Today you can use SSDs as front end cache to hold DB indexes and frequent data for web servers and such adn use slower secondary storage.
    SSD + SAS + 4TB storage
    Separating the system from data: #1 must
    Having data on array: been what I use
    I put a large photo library on 2 x 10K VRs vs SSD and couldn't tell much difference (SSD is soundless of course) But my WD Blacks make as much noise and run 15*C hotter than those 10K (not what you expect?)
    While 10K and 7.2K are in the 140-180MB/sec range, they are in 3.0 to 12.0 ms seeks, not  0.01 ms.
    People wonnder why shrink a drive to 2.5" (or why not go down to 1.8".
    How long does it take to reposition a disk head? how often? the 10K VR travels on outer tracks at 70 MPH. Really trying to fly off into space.
    It uses one step to find the "zip code" and then another DSP to find the "house."
    True of any high density perpendicular recording mechanism.
    And of course while the Raptor-X tried to find a home with famers, Cheetah buyers, the WD 10K line has more of a home where servers and small form factor drives - and 100s of them - can fit in a rackmount server I imagine.
    Anyway.... if SR and DSLReports can drop out of site due to power and hardware failure and loss... we can learn some and hope to protect our own data and investments.

  • Please explain on what does these select statements get from these tables..

    Hello Experts,
    What does these select statements get?and what are these tables CDHDR and CDPOS used for?
    The program that I am currently modifying lets users post documents and the ones that are not posted
    are saved in a custom table. Now, we had a scenario in PROD server wherein certain items are not being
    fetched as bypassed but we saved it in the bypassed table. Anyway, below is the select statements:
    get all change document header within the selected dates
      SELECT * INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
        FROM cdhdr
       WHERE udate IN s_udate
         AND objectclas EQ 'CHARGE'
         AND tcode IN (lc_tcode_msc1,
                       lc_tcode_msc2,
                       lc_tcode_msc1n,
                       lc_tcode_msc2n,
                       lv_tcode_vl33n,
                       'SE38',
                       'ZGENE').
    IF NOT it_cdhdr[] IS INITIAL.
    SELECT objectid changenr value_new
          FROM cdpos
          INTO TABLE it_cdpos
          FOR ALL ENTRIES IN it_cdhdr
         WHERE objectclas EQ it_cdhdr-objectclas
           AND objectid   = it_cdhdr-objectid
           AND changenr   = it_cdhdr-changenr
           AND tabname    = lc_tabname_mcha
           AND fname     IN (lc_fname_zustd,'LWEDT').
    DELETE it_cdpos WHERE value_new+00(01) = 'X'.
      LOOP AT it_cdpos ASSIGNING <fs_cdpos>.
        l_matnr = <fs_cdpos>-objectid+00(18).
        l_charg = <fs_cdpos>-objectid+22(10).
        l_zustd = <fs_cdpos>-value_new+00(01).
        READ TABLE it_batch INTO wa_batch
             WITH KEY matnr = l_matnr
                      charg = l_charg.
        IF sy-subrc EQ 0.
          l_tabix = sy-tabix.
          wa_batch-zustd = l_zustd.
          MODIFY it_batch FROM wa_batch INDEX l_tabix
                 TRANSPORTING zustd.
        ELSE.
          wa_batch-matnr = l_matnr.
          wa_batch-charg = l_charg.
          wa_batch-zustd = l_zustd.
          wa_batch-code  = 'A'.              "selected within period
          APPEND wa_batch TO it_batch.
        ENDIF.
      ENDLOOP.
      ENDIF.

    Hi,
                            The first select statement is for Change document header.CDHDR table contains this object class in your case if you change any batch number for any material number  from the transaction for example (MB01) you can trace this .
    From CDPOS you can trace which tables affected (EX : MCHA) and the new value(l_zustd ).
    Regds,
    Vinsa.R

  • What is the request state value to shutdown VM using hyper-v?

    As we know request state value 3 is used to turnoff VM , what is the request state value to shutdown hyper-v VM ? Is there any different ways to shutdown hyper v VM using C# wmi?
    Regards
    Venki

    This forum is for Windows Embedded Standard 8. Please post to the hyper-V forum is here:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverhyperv
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • I need to reinstall my photoshop. What is the appropriate link?

    I need to reinstall my photoshop. What is the appropriate link?

    Click on the Photoshop Elements 12 link and the Windows, English link will appear

  • What is the appropriate product name for CSS 11500 on Bug Toolkit

    Today I tried to search DDTs of CSS 11500 on Bug Toolkit (http://www.cisco.com/cgi-bin/Support/Bugtool/home.pl), however I can not find out appropriate product name corresponding to CSS 11500.
    Before I had searched DDTs of CSS 11500 on Bug Toolkit many times, at that time, if my memory correct..
    I selected "Cisco CSS 11500 Series Content Services Switches" in the list of "Search for bugs in other Cisco software and hardware products" on Bug Toolkit.
    But I can not find this product name today.
    Do you know what product name appropriate for CSS 11500 on Bug Toolkit ?
    Your information would be appreciated.
    Best regards,

    Hi Gilles,
    Thank you for your cooperation.
    Today, I can find the CSS at "new Bug Toolkit".
    http://tools.cisco.com/Support/BugToolKit/action.do?hdnAction=searchBugs
    Select Product Category: Application Networking Services
    Select Product: Cisco CSS 11000 Series Content Services
    So I understand I should go "new Bug Toolkit" instead of old "Bug Toolkit" to
    search any DDTs for CSS 11500.
    Many thanks.
    Best regards,

  • What is a customer statement and when do we use it?

    Hi,
    What is a customer statement and when do we use it? An example in terms of business scenario would surely help me.

    Hi,
    In business sense Customer statment is the list of  transactions that were executed over a period of time.
    When ever customer buys the material from the company bill is generated and the same is debited to his account.
    whenever customer pays the amount to the company, the amount will be credited to his account.
    So the Customer statment will have the list of DEBIT and CREDIT entries.
    There will be Reconciliation for every quarter with the customer by the company sales executive and related price, discounts, freight which might be excess or less will be settled

  • How check what kind od SQL statement procedure do

    I would like to check what kind of sql statement type (DML, DDL , Retrive) procedure do on objects.
    is it possible?

    You could try to parse the SQL in DBA_SOURCE for the procedure in question, but that probably doesn't help much...
    Note as well that procedures cannot do DDL unless they resort to dynamic SQL, in which case Oracle itself doesn't know what objects you're working with and what you're doing with them until runtime.
    Justin

  • How to find what  are the select  statements fired on a particular schema

    Hi Guys,
    I have a development box schema whose username and the password is shared across many users who are doing the developement.
    I wnat to know what are the select statement fired on it during a particular time interval.
    Thanks,
    Prafulla

    with dba user
    BEGIN
    DBMS_FGA.ADD_POLICY(object_schema => 'schemaname',
    object_name => 'CALLS',
    policy_name => 'CALLS_AUDIT',
    statement_types => 'SELECT'
    …enable => TRUE);
    END;
    then all select are viewed on table dba_fga_audit_trail
    Edited by: Adigozalov Gurban on Dec 3, 2010 11:05 AM

  • What exactly continue & return statement does

    Hi All,
    Here i what to know what exactly continue & return statement does?Pls. do explain with an example for each.
    Thanx,
    M.Ananthu

    In this example, break would do the same thing that return does.
    import java.awt.*;
    import javax.swing.*;
    public class demo {
      static String[] strings = {
        "", "Mary", "had", "", "a", "test", "little", "lamb"
      public static void main(String[] args) {
        for(int j = 0; j < strings.length; j++) {
          if(strings[j].equals(""))
            continue;
          System.out.println(strings[j] + " ");
          if(strings[j].equals("test"))
            return;
    }

  • What is the Extract statement? Please give me some sample code.?

    What is the Extract statement? Please give me some sample code.?

    Hello ,
    Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements: EXTRACT . When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset EXTRACT HEADER. When you extract the data, the record is filled with the current values of the corresponding fields. As soon as the system has processed the first EXTRACT statement for a field group , the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs. By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
    Sample program:
    REPORT  ZSPFLI  LINE-SIZE 132 LINE-COUNT 65(3)
                                                 NO STANDARD PAGE HEADING.
    TABLES:SPFLI,SCARR, SFLIGHT, SBOOK.
    SELECT-OPTIONS: MYCARRID FOR SPFLI-CARRID.
    FIELD-GROUPS: HEADER, SPFLI_FG, SFLIGHT_FG, SBOOK_FG.
    INSERT:
            SPFLI-CARRID
            SPFLI-CONNID
            SFLIGHT-FLDATE
            SBOOK-BOOKID
           INTO HEADER,
            SPFLI-CARRID
            SPFLI-CONNID
            SPFLI-CITYFROM
            SPFLI-AIRPFROM
            SPFLI-CITYTO
            SPFLI-AIRPTO
            SPFLI-DEPTIME
            SCARR-CARRNAME
          INTO SPFLI_FG,
            SFLIGHT-FLDATE
            SFLIGHT-SEATSMAX
            SFLIGHT-SEATSOCC
            SFLIGHT-PRICE
          INTO SFLIGHT_FG,
            SBOOK-BOOKID
            SBOOK-CUSTOMID
            SBOOK-CUSTTYPE
            SBOOK-SMOKER
           INTO SBOOK_FG.
    SELECT * FROM SPFLI WHERE CARRID IN MYCARRID.
      SELECT SINGLE * FROM SCARR WHERE CARRID = SPFLI-CARRID.
      EXTRACT SPFLI_FG.
      SELECT * FROM SFLIGHT
       WHERE CARRID = SPFLI-CARRID AND  CONNID = SPFLI-CONNID.
        EXTRACT SFLIGHT_FG.
        SELECT * FROM SBOOK
               WHERE CARRID = SFLIGHT-CARRID AND
               CONNID = SFLIGHT-CONNID AND FLDATE = SFLIGHT-FLDATE.
          EXTRACT SBOOK_FG.
          CLEAR SBOOK.
        ENDSELECT.
        CLEAR SFLIGHT.
      ENDSELECT.
      CLEAR SPFLI.
    ENDSELECT.
    SORT.
    LOOP.
      AT SPFLI_FG.
        FORMAT COLOR COL_HEADING.
        WRITE: / SCARR-CARRNAME,
                 SPFLI-CONNID, SPFLI-CITYFROM,
                 SPFLI-AIRPFROM, SPFLI-CITYTO, SPFLI-AIRPTO, SPFLI-DEPTIME.
        FORMAT COLOR OFF.
      ENDAT.
      AT SFLIGHT_FG.
        WRITE: /15 SFLIGHT-FLDATE, SFLIGHT-PRICE, SFLIGHT-SEATSMAX,
                   SFLIGHT-SEATSOCC.
      ENDAT.
      AT SBOOK_FG.
        WRITE: /30 SBOOK-BOOKID, SBOOK-CUSTOMID,
                     SBOOK-CUSTTYPE, SBOOK-SMOKER.
      ENDAT.
    ENDLOOP.

  • What is IMPORT/EXORT statements ?please give some example code?

    What is IMPORT/EXORT statements ?please give some example code?

    EXPORT :-To read data objects from an ABAP program into ABAP memory, use the following statement:
    Syntax
    EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ... TO MEMORY ID <key>.
    This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM <f i >, the data object <f i > is saved under its own name. If you use the FROM <g i > option, the data objet <g i > is saved under the name <f i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    The EXPORT statement always completely overwrites the contents of any existing data cluster with the same name <key>.
    IMPORT :-To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    they are used to save and reterive data in ABAP memory.
    here is an example to clear about them.
    <b>REPORT ZWA_TEST2 .
    data: it_bkpf type table of bkpf with header line.
    SELECT * FROM bkpf into table it_bkpf.
    EXPORT it_bkpf TO MEMORY ID 'MID'.
    refresh it_bkpf.
    IMPORT it_bkpf FROM MEMORY ID 'MID'.
    LOOP AT It_bkpf.
    write:/ it_bkpf-belnr.
    ENDLOOP.</b>
    Reward points if it is useful.......

  • What is the 'U' state in process listings from 'ps'

    Argh argh argh argh argh.
    Right.
    So I am using two Mac OS X Server 10.3.9 boxes (xServes) as backup machines, one for an office and one for a colo site. Work great with some custom scripts to do the heavy lifting, and it all calls rsync, which works like a champ. Except twice now, the backups have finished copying all the files, and then the last rsync (the big one) hasn't exited properly. Or, rather, it hasn't exited at all. If I do a 'ps', it appears in the process listing with a status of 'U', which isn't even listed in the manual page for ps.
    rsync 1 has a parent of my backup script
    rsync 2 has a parent of rsync 1
    rsync 3 has a parent of rsync 2
    If I kill rsync 1, nothing happens. If I kill -HUP rsync 1, nothing happens. If I kill -9 rsync 1, NOTHING HAPPENS.
    If I kill rsync 2, rsync 3 dies. If I kill -HUP rsync 2 (after rsync 3 is gone), nothing happens. If I kill -9 rsync 2, it turns into a zombie process.
    I don't know what happens if I kill rsync 3.
    If I kill the parent process to rsync 1, I don't get any of the useful information about what went wrong and what didn't in my backups. The frustrating thing is, before it got into this wedged position, it FINISHED EVERYTHING. So I'm getting notifications that my backup didn't work, when it did, and not getting notifications of the two (minor) errors that DID occur.
    Sometimes I hate computers.

    Adam,
    it mean that the process is in the kernel, and waiting on some event. And is ignoring any interruptions like signals. Which is the kill command isn't getting the processes attention. It's possible that the process may resume at some point or not. if the process doesn't switch back to a user context, then the only way to get rid of the it, and thus free the resources that it's using, would be a system reboot.
    Andy
    from the ps(1) manpage.
    state The state is given by a sequence of letters, for example,
    ``RWNA''. The first letter indicates the run state of the
    process:
    I Marks a process that is idle (sleeping for longer than
    about 20 seconds).
    R Marks a runnable process.
    S Marks a process that is sleeping for less than about 20
    seconds.
    T Marks a stopped process.
    U Marks a process in uninterruptible wait.
    Z Marks a dead process (a ``zombie'').

Maybe you are looking for

  • How do I transfer one playlist from my itunes library to my ipod?

    How do I transfer one playlist from my itunes library to my ipod. I do not want to sync my whole library music. I tried to set to *manually managing music* and drag the playlist. Doesn't work. If I try to sync *selected playlists* it wants to delete

  • RegEx with PL/SQL?

    Hi, i need a function that checks input for a valid MAC address ... like '00-02-A6-0B-09-1B' only HEX values should be included ... 'AJ-00-02-T9-0B-09' schould be invalid, 'cause AJ is not a HEX value ... is that possible in PL/SQL? or may i use rege

  • RelativeMember function in HFR

    Hi, In my report, I have a requirement to display the prompt and prompt -1 on columns. I could achieve this using the RelativeMember function and setting offset as -1. But the Year dimension contains the members, 2007,2008,2009 & 2010. So when the us

  • Problem With Refine Edge  Tool (CS 6)

    When trying to increase the edge of a selection, the newly selected "margin" immediately snaps back to its original state.  Help!!

  • How to insert a row in UDO of type document with document line using DIAPI

    Does somebody knows if there is a way to insert a new row in a UDO of type document and document lines using the DI API? I tried it by using <i>oCompany.UserTables.Item( "PMX_DOC" )</i> but this was not working. Thanks for the help. Regards, Jeffrey