Getting the time interval of a mouse being pressed

Hai
I am developing an image scrolling application .And i have a JButton to scroll the image . The problem is that i need to scroll the image proportional to the time the user presses the button.
How can i do it ?
Thanks in advance

Hai
I did it in a way which i am not sure to be apprpriate. I started a thread (defined in an innerclass) in the mouse pressed event of the button and stopped the thread in the mousereleased event .
Any body with a different elegant idea kindly make me aware of it.
Any one facing the same issue may try this method and give me a feedback
Thank you

Similar Messages

  • How to get the time interveral for each status of worklow (wating,Inprocess

    Hi Friends,
    I have requreiemnt to get the time interval for each status of workflow.
    ex.
                                                                     status
    workflow id  | startd date | enddate       | waiting | Inprocessing|Error|......
    1026            10.10.2008  25.10.2008        1hr      1hr 30 min    2 hr
    Please do give me idea how to get the time stam of each status of workflow.
    Thanks,
    D.prabhu

    Hi,
    I think the following tables would be helpful to you:-
    SWW_CONT     Container Contents for Work Item Data Container
    SWW_CONTOB     "Container Cont. for Work Item Data Container (Only Objects)"     
    SWWLOGHIST     History of a work item     
    SWWORGTASK     Assignment of WIs to Org.Units and Tasks     
    SWWUSERWI      Current Work Items Assigned to a User     
    SWWWIHEAD     Header Table for all Work Item Types
    Hope it Helps!
    Regards,
    Kanika

  • Set the time interval when BPM read e-mail to get offline adobe forms

    Hi masters
    Do you know where I can set the time interval when the BPM read the e-mail account to get the off-line adobe forms received ? I think it is 10 minutes but I need to change to 1 minute.

    there is a config attribute

  • Reducing the time interval in file Adpt to write a flat file at a location

    Hi All,
    I hav a scenario where i hav to write a flat file (<b>XXX.txt</b>) to a location. b4 doing that, i hav to check whether <b>XXX.txt</b> already exists or not. If it doesn't exists then i hav to write the <b>XXX.txt</b> file there. if it already exists, then i hav to wait until that <b>xxx.txt</b> file gets deleted.
    In the receiver file adapter v hav an option <b>file construction mode = <u><i>create</i></u></b> which does the same thing. but the problem here is it is taking too long (<b>more than 5 min</b>) which is not at all acceptable in my case (it is ok <b>if it takes 1 min</b>).
    Is there any way to <b>reduce the time interval</b> using the same option?
    Or do we hav any <b>work around solution</b> for acheiving the same scenario?
    any help wud b appreciated.
    Thnx in Adv.
    Anil

    Anil
    As far as my knowledge goes I think it is not possible because we are not going to do anything from our end. XI is doing processing and creating a file for you. But you might be sending a large file at a time. So you have to improve the performance in your scenario. You check this urls on how to improve performance in XI:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    Improving performence in XI
    Maximum Permitted File Size in XI
    ---Satish

  • How can i get the time and result together show in one Array or in Cluster?

    hello everyone i am a new user .I want to get the time and voltge form a Generater. How can i get the time and result together show in one Array or in Cluster?When i selecte the first(or third...) result then in the front panel display the time and the voltge.Thank you!
    I post the time and voltge NOT together photo
    Attachments:
    12345.GIF ‏54 KB

    You can create an array of clusters with one element being the time and the other being the voltage, like so (using the "Get Waveform Components" function):
    Message Edited by smercurio_fc on 10-17-2007 03:15 PM
    Attachments:
    pic.PNG ‏11 KB

  • How to write a query to get the time difference of two varchar type time columns

    Hi,
    I want to get the time difference between the two varchar type columns.please see the attached image for more details:
    My requirement is like:
    timestarted
    timeended
    timediff
    9:00:00
    10:00:00
    1:00
    9:15
    9:30:00
    0:15

    Storing time alone as VARCHAR2 value is a incorrect design. Always store it as DATE or TIMESTAMP.
    If you already have a messed up design and cant change it, then you need to convert your VARCHAR2 time into a DATE or TIMESTAMP and find the difference. I have converted it to TIMESTAMP and obtained the difference as INTERVAL.
    SQL> with t
      2  as
      3  (
      4  select '09:00:00' timestarted, '10:00:00' timeended from dual
      5  union all
      6  select '09:15:00' timestarted, '09:30:00' timeended from dual
      7  )
      8  select timestarted
      9       , timeended
    10       , (timeended - timestarted) day to second diff
    11    from (
    12          select to_timestamp('01011900' || timeended, 'ddmmyyyyhh24:mi:ss') timeended
    13               , to_timestamp('01011900' || timestarted, 'ddmmyyyyhh24:mi:ss') timestarted
    14            from t
    15         );
    TIMESTARTED                                        TIMEENDED                                          DIFF
    01-JAN-00 09.00.00.000000000 AM                    01-JAN-00 10.00.00.000000000 AM                    +00 01:00:00.000000
    01-JAN-00 09.15.00.000000000 AM                    01-JAN-00 09.30.00.000000000 AM                    +00 00:15:00.000000
    SQL>

  • HOW CAN I GET THE TIME IN EXCEL SHEET USING WRITE TO MEASUREMENT INSTRUCTION

    HI, I am using GET TIME IN SECONDS ,and after that i placed SECONDS TO DATE /TIME instruction ,and i had taken a write to measurement file instruction
    to get the time in excel sheet. Now i am not able to connect write to measurement source to seconds to date and time output . Is there any solution.
    I am attaching my VI file also.
    Attachments:
    TEST.vi ‏43 KB

    Hi
    Im using Labview 8.2. Currently it just shows the data without the time. Im not sure what to do. It works perfectly though. I just want the time to appear on my notepad along with my data
    holla
    Attachments:
    Testing1.txt ‏1 KB
    Untitled 231_LV80.vi ‏23 KB

  • How do I get the time stamp on photo?

    How do I get the time stamp on photo? Someone texted me a few pics and it does not show date taken in iphoto. How can I find this. They were taken with a iphone. Thx

    Here's a screenshot of what Keith is referring to:
    Note the cursor over the date which brings up the 3 important dates for the photo.
    OT

  • Trying to get the time of analysis for tables in SAP

    Hi all,
    I'm using the update statistics command on some tables in my database.
    The num_rows attribute in the user_tables is updated after that but the last_analyzed attribute is not updated correctly.
    Does anyone know how ? or maybe a different way to get the time the table was analyzed ?
    Thanks,
    lital

    Dear Lital,
    Can you please specify the Database system you are using and the version?
    Thanks
    N.P.C

  • Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    igonneau wrote:
    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer?
    You can, but how are you going to back up those other files?  When (not if) your Time Capsule fails, you risk losing them.  See #Q3 in Using Time Machine with a Time Capsule for details.
    Then can i access these files only on the time capsule without connecting it?
    Not sure what you mean.  You have to connect a computer, either via Ethernet cable or wirelessly, to read or write to the disk. 

  • How can i get the time to appear on my stored data in notepad

    Hi all,
    I was wondering how can i get the time to appear on my stored data in notepad? I saw an example before but i forgotten which example was it.. Any ideas??
    holla
    Attachments:
    TextFile1.txt ‏3 KB

    Hi
    Im using Labview 8.2. Currently it just shows the data without the time. Im not sure what to do. It works perfectly though. I just want the time to appear on my notepad along with my data
    holla
    Attachments:
    Testing1.txt ‏1 KB
    Untitled 231_LV80.vi ‏23 KB

  • How can I get the time in Microsecond with JNI ?

    How can I get the time in Microsecond with JNI ?

    JNIEXPORT jdouble JNICALL Java_Win32Native_queryPerformanceFrequency (JNIEnv *env, jobject obj) {
         LARGE_INTEGER lFrequency;
         ::QueryPerformanceFrequency(&lFrequency);
         return (jdouble)lFrequency.QuadPart;
    JNIEXPORT jdouble JNICALL Java_Win32Native_queryPerformanceCounter (JNIEnv *env, jobject obj) {
         LARGE_INTEGER lpCounter;
         ::QueryPerformanceCounter(&lpCounter);
         return (jdouble)lpCounter.QuadPart;

  • Getting the time of a particular keyframe

    Hi There,
    I took a look at the Scripting Guide, but after a cursory search + read couldn't find the answer to my question there, so I thought I would reach out here.  How can I get the time value for a keyframe in any given property?  I know I can iterate through keys using the .numKeys value, but what is the code to use in order to  retrieve the time of the key while iterating.
    Here's some pseudo code for how I'm thinking about it:
    numPosKeys = lyr.transform.position.numKeys;
    for (var i=1; i <= numPosKeys; i++)
         timeOfKey = {//not sure how to do this, or if it is possible};
         //do something with timeOfKey
    Thanks for your time and help!
    --Arie

    timeOfKey = lyr.transform.position.keyTime(i);
    (methods to retrieve key info start with 'key', and methods to set info start with 'set' and end with 'AtKey').
    Xavier.

  • How to set the time interval for data obtain through labview via write measureme

    I'm need to programme to obtain data from oscilloscope. Currently my laptop able to communicate with Agilent DSO6014A oscilloscope via USB. I'm include the write measurement in mty program and save the data in .lvm file. But the time interval in the data are too small which is in micron seconds. Is there a way to modify the interval values?

    The attached file is the capture of my diagram. Thanks.
    Attachments:
    Capture.PNG ‏56 KB

  • FM to get the time less than 15min

    Hi ,
    Is there any FM to get the time less than 15 min?
    Regards,
    Arun.

    Hi Arun,
    COPF_DETERMINE_DURATION is FM to calculate difference between two dates and times.
    Regards,
    Soundarya.

Maybe you are looking for

  • Compaq machines and Java Plug-in 1.2.2

    We have installed the Java Plug-In v1.2.2 on an IBM, Dell, and Compaq machines. The os on all 3 machines is Windows 2000. Our Java applet runs fine on the IBM and Dell machines. The applet does not run at all on the Compaq machine, even though it has

  • HT201301 i can't find the file sharing section? why is that?

    i can't find the file sharing section? why is that? it's not shown on my iTunes. . .

  • Email server didn't recognize your user name

    Just lately - when trying to email a photo in iPhoto ~ I get this message: email server didn't recognize your user name/password combo. I have googled and checked Preferences. I have tried to reset each of the passwords in each email account I have s

  • Post-Clone script error

    Hello, I am facing post-clone error on 11i O.S aix 5.3 when i run post-clone script on db it got error.share any solution is highly appreciable $ perl adcfgclone.pl dbTier Enter the APPS password [APPS]: First Creating a new context file for the clon

  • Editing picture settings

    So I have a picture that has already been loaded onto the timeline, rendered, and is thus no longer in the 'clips' area since it has already been placed on the timeline. I want to change the motion settings, so I click 'media' then 'photos' then sele