How to capturing Mouse double click action?

Hi all,
how can we identify the "mouse double click" action?
MouseListener has methods for only mousePressed,released,clicked (single).
Thanks in advance..
Regards
Sojan

Hi,
Thanks it worked ..
e.getClickCount() value increases if we keep on clicking on the component, is there anythning wrong by interpreting double click as
"e.getClickCount() >=2 "?
Regards
Sojan

Similar Messages

  • Mouse Double Click on JTable

    I'm having difficulty seeing how to capture a double-click event from a
    JTable. I can't find the correct listener interface in order to get
    this event (ActionListener is not available for this component).
    you can contact me at
    [email protected]
    null

    hi,
    i tried
    if (event.getClickCount() == 2){
    int row =jTable1.rowAtPoint(event.getPoint());
    if (row != -1) {
    // double click processing here
    in the click event.
    it didn't work.
    any idea???
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sathish:
    Hi,
    Did you try addMouseListener() ?
    If you are using the GridControl, use getTable().addMouseListener()
    Tx<HR></BLOCKQUOTE>
    null

  • Double click actions were capturing for PPOME by other servers,But not in..

    Hi all,
      I am trying to assign cost center for the employee using T.Code PPOME. While recording I am unable to select person to assign cost center,
    i.e. while recoding I had done double click action for selecting a person. But, at the time of processing the recorded code, That double click actions were not capturing. 
    Here my problem is...
    When I am running, My program is unable to catch double
    But, In other server system, double click action was capturing sucessfully.Can any one suggest me regarding this.
      Can any one suggest me how to handel this issue.
    Thanks in advance,
    Surender.B.V.
    Edited by: Surender Batlanki on Feb 8, 2008 7:20 PM
    Edited by: Surender Batlanki on Feb 8, 2008 7:24 PM

    Hi Kiran,
        I got what you told, But are you sure double click action will not handel in SHDB recording for any transaction code ?
        I also tried all possibilities, as you suggested by using menu bar options, mouse right click actions and making changes in recorded program. If I gone through this step I can solve my issue.
        Do u face this kind of issue any time i.e. handling double click actions. Can you suggest me if any.
        Thanks for your reply.
    Regards,
    Surender.B.V.

  • How to  record double click action in ECATT ...?

    Hi,
    I created ecatt for Asset master in that recording there is sub field in which i need to enter data only after double clicking main field ,while recording i double clicked tha main field after upload txt file unless i double click the field it is not moving farward,
    so can u help the same..
    thanking you

    You can record double click action using ecatt or u can do same by pressing f2 key while recordiing

  • How to overwrite double click action in siteadmin grid?

    I would like to create custom page based on siteadmin widget and now I'm facing a problem with changing a double click action as a defoult it open location with .html sufix if it is not a folder. I would like to open dialog.
    Thanks,

    Thanks Sham, here is my sample function if anyone need it too
    var coreOpenPage = CQ.wcm.SiteAdmin.openPage;
    CQ.wcm.SiteAdmin.openPage = function(path, type, newWindow, selection) {
         if (type == 'commerce/components/product') {
             CQ.Ext.Msg.alert(
                 "Debug",
                 "Open product dialog"
          } else {
             coreOpenPage.apply(this, arguments);

  • Doubt - mouse double click invokes both single and double click

    Hi Friends,
    I added mouse listener to a java component. In the mouseClicked() method, I have implementation for both mouse single and double click. When I try to double click that component it invokes the single click method first and the it invokes the double click method. My problem is when I try to double click that component it should invoke my double click method alone not single click too.
    I'd be very grateful if someone can help me.
    Thanks and Regards,
    Sangeetha J

    Your problem: a double click is two single clicks. The first click will always fire a single-click event. How's the computer supposed to know that another click is to follow?
    All I think you could do is to instantiate a timer in the one-click method, set to whatever amount of time you think a double-click should take. If you get a second event while the timer's still active, it was a double-click and you can stop the timer and do the double-click action. Otherwise your timer should execute the single-click action after it timed out.
    But this will make your GUI look like it's responding slowly to single-clicks.

  • Distinguishing b/t two single mouse-click and mouse-double-click

    Hi,
    I am curious to find out how Forms will distinguish between two single when-mouse-click events and a single when-mouse-doubleclick event. Is it simply a timing issue or is there more involved i.e. the 'co-ordinates' of the mouse. Thanks in advance for any opinions given,
    regards,
    Kevin.

    The difference is same as the difference of Apple and Orange.
    Its depends on O/S and event management within OS kernel.
    You can change the timing in Control panel of mouse double click.

  • How can I define Double Click Processing in SAP Query ?

    The first question is : How Can I define drill-down for SAP Query report ?
    The second one :  How can I program Double Click in SAP Query report for Different columns like ALV Grid processing ?

    you can attach a repot or at tcode etc in an SAP query using report assignment in SQ01 but as far as i remember you cannot attach multiple reports.
    regards,
    khusro habib

  • FRM-40735 when mouse double click trigger raised unhandled exceptiORA-01722

    I am using Forms 10g.
    i am writting a procedure in When mouse double click trigger that will display all the values available for ip address from this procedure.
    The procedure is
    DECLARE
    CURSOR cr
    IS
    SELECT LEVEL NUM
    FROM DUAL
    CONNECT BY LEVEL<=(Select max_range from t_ip_address_dtl where category_name=:t_item_cpu.category and block_name =:block_head.block)
    MINUS
    SELECT TO_NUMBER(SUBSTR(IP_address, 12))
    FROM T_item_cpu;
    abc number(4);
    abc1 number(4):=null;
    BEGIN
    FOR rec IN cr LOOP
         abc1 := abc1 || ',' || rec.num;
    END LOOP;
    Message('You can use between these nos: '||abc1);
    Message('You can use between these nos: '||abc1);
    END;
    It is showing this error :-

    Yes bye mistakly i posted ,, due to internet problem..

  • Why can't I minimise itunes with mouse double click?

    why can't I minimise itunes with mouse double click?

    I do not know if you can ..
    Try -
    Command + M .

  • Agentry - Disable Double Click Action on Individual Row

    Is it possible to disable the double click action on a single row in a list screen?  I wanted to have a rule that would disable a row if it has already been updated.  Let me know if that is possible.

    The double click option can not be set by a rule or not, but the action is called, you can put an enable rule on to check the data already.
    Stephen

  • MOUSE DOUBLE CLICKING

    I have an hp mouse...however it says product of china on the back..It does look like an hp mouse though..
    Anyhow..it's doubleclicking..it's driving me crazy..
    I've had the mouse for a few years..
    It just starting doing this..
    I"m running XP
    It is a USB..with a red light under it...with an optical eye?...Not sure if that's what they call it..
    Please help..Are there drivers I can use to fix this...
    I"m not sure if a windows update..might have done this..
    Many thanks..

    Hi kittylondon,
    I understand your mouse is acting like you are double-clicking even though you are only clicking. Take a look at the following, Troubleshoot mouse double-clicking when you single-click. The document also applies to Windows 7 and Windows Vista, so you will have to make sure you are referencing only the portions that apply to Windows XP. I hope this is of help to you. Best of luck. Have a wonderful day.
    Ryan1216
    I work on behalf of HP
    The advice and opinions given here are my own and not those of HP

  • How to separate double click action and single click action

    in my mouse action listerner for JTable.
    i do two actions, when user doule click column header, sort the column,
    when single clicked, select all cells in this column.
    but when user double clicked, the action attached with single click also triggered.(column sorted but also selected)
    how to separate them.

    Ok, so despite my earlier suggestion being basically the only solution offered anyway on the web it appears that Lokust is correct and that the single click operation would be performed as well as the double click one. to get round this u have to implement a Timer, i'm not going to post my whole code here because most of it is irrelevent, just add this code in the correct places and it should work fine. apologies to all format junkies for not using code tags!
    import java.util.Timer;
    import java.util.TimeTask;
    public class WhateverClassName implements MouseListener {
    private Timer t;
    private boolean doubleclick;
    myTable.addMouseListener(this);
    public void mouseClicked(MouseEvent e) {
         t = new Timer();
         if (e.getClickCount() == 2){
              doubleclick = true;
         else if(e.getClickCount()==1){
              t.schedule(new MyTimerTask(),500);
    /*You need all these methods as well */
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mouseEntered(java.awt.event.MouseEvent)
    public void mouseEntered(MouseEvent arg0) {
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
    public void mouseExited(MouseEvent arg0) {
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent)
    public void mousePressed(MouseEvent arg0) {
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
    public void mouseReleased(MouseEvent arg0) {
    class MyTimerTask extends TimerTask{
    /* (non-Javadoc)
    * @see java.util.TimerTask#run()
         public void run() {
              if(doubleclick){
                   System.out.print("double click");
              else{
                   System.out.println("single click");
              t.cancel();
    This assumes that for it to be considered a double click user has to click twice within .5 seconds.
    Let me know if that works or not, sorry its a bit messy!

  • How do I adjust double click speed in Mountain Lion. The mouse system preferences does not seem to have a speed slider for double clicking. Only the tracking speed slider is visible.

    Double clicking is no longer opening my folders.
    How can I adjust the double click speed in Mountain Lion to reduce the double clicking speed. The mouse system preferences does not seem to have a speed slider for double clicking. Only the tracking speed slider is visible.

    For 10.8.3,  it's in System Preferences > Accessiblity > highlight Mouse & trackpad on the left.  The Double click speed slider shows on the right.  Moving it to the left gives you more time between clicks.  Moving it right gives you less time.

  • Trying to catch mouse double click

    Using come code in the API 1.3 documentation, I created a JList and am trying to catch when a user double clicks on an item in the list. I have the following snippet of code:
    public void mouseClicked(MouseEvent e) {
    if ((e.getClickCount() == 3) && (e.getSource() == list1)) {
    int index1 = list1.locationToIndex(e.getPoint());
    System.out.println("Double clicked from the left list on Item " + index1);
    When I double click on an item in list1, it prints out the output line twice as in:
    Double clicked from the left list on Item 1
    Double clicked from the left list on Item 1
    How can I get it to run the code only once. I'm not sure why it's running it twice. Any Ideas would be helpful. Thanks....
    Matt Menard

    I've used similar procedure with success in JDK1.3.1. Without seeing the rest of your code, the only thing left for you to experiment with is to call the consume() method if the count is greater than 1. I did notice that Java mouse event handler leaves much to be desired. For example, the mouseentered and mouseexited events kept getting fired even tho the mouse has entered and never leave.
    V.V.

Maybe you are looking for

  • Need Oracle 10.2.0.1.0 Linux software

    I would like to down load Oracle 10.2.0.1.0 Linux software. Where would it be available?

  • GATE ENTRY PROCEDURE

    I have to set the Gate Entry Procedure for the incoming material.  how do i customize the same and what are the t.codes. is Inbound Delivery can be used for Vendor Gate entry. regards KIM.

  • Using Contract with SRM-MDM using several Web Service ID's

    Dear Experts, ALL of our Contracts were created and still being created by adopting products from CCM, meaning BBP_PDIGP-CATALOGID holds the Web Service ID and BBP_PDIGP-CATALOGITEM holds the Catalog Item GUID. When trying to create a Shopping Cart b

  • Posting Podcast file to user blog entry

    Hello, I have a Apple Xserve (originally running Tiger) that was running a blog for some podcasting training that I was doing with some faculty at our high school. Faculty could subscribe to the podcast/blog in iTunes using the link provided for them

  • Connections to Home radio and Car Stereo

    Do they have an accesory that would let me listen to my ipod through my car stereo when im driving and my home stereo when i'm at home?...An all in one deal?