Results 1 to 4 of 4
  1. #1
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

    Default Double click event

    Hello,

    Is there also a mouse doubleclick event in Java ?

    Thx

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Dipke View Post
    Is there also a mouse doubleclick event in Java ?
    What does the API documentation for the MouseEvent class tell you?

    kind regards,

    Jos

  3. #3
    Dipke is offline Member
    Join Date
    Aug 2010
    Location
    Leuven, Belgium
    Posts
    86
    Rep Power
    0

    Default

    Hi,

    This tells me that there is no double-click event,
    but a getClickCount().

    I was searching in the API after "double click" and related words.

    Thanks for the info

    Dipke

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Dipke View Post
    Hi,

    This tells me that there is no double-click event,
    but a getClickCount().
    Yup, there's a certain time interval defined for the mouse driver (your OS allows you to adjust that value) and if you manage to click a mouse button more than once in that time interval the getClickCount() method returns the number of clicks detected.

    kind regards,

    Jos

Similar Threads

  1. click event
    By raman_v in forum Java Servlet
    Replies: 2
    Last Post: 01-08-2010, 12:05 PM
  2. Double click eevent on particular row
    By selva.bics in forum AWT / Swing
    Replies: 3
    Last Post: 10-10-2009, 10:33 AM
  3. Run Jar file on double click
    By dhaval.rajput.p in forum New To Java
    Replies: 2
    Last Post: 07-24-2009, 05:44 PM
  4. How to detect double click with a JFrame
    By Jary316 in forum New To Java
    Replies: 3
    Last Post: 01-05-2009, 08:39 PM
  5. Double click radio button
    By mandragora in forum AWT / Swing
    Replies: 11
    Last Post: 11-10-2008, 11:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •