Solved

Mouse Double click over an image or object 4 a specific event. How?

Posted on 1998-02-13
1
163 Views
Last Modified: 2010-04-16
Hi, How could I identify a mouse double click over an image or object as a specific event ?. For example:

  single click over an image or object ---> in order to do a
                                            thing.

  double click over an image or object ---> in order to do
                                            another thing.

  Thanks.
0
Comment
Question by:Deladier
1 Comment
 
LVL 1

Accepted Solution

by:
froderik earned 0 total points
ID: 1233048
For 5 points I suggest looking at the MouseEvent class to see whether you can find out if a MouseEvent is double or not.

If you already know how to handle event it should not be so hard to find out.

(In case you increase the points it would be interesting to know which event model you use, 1.0 or 1.1.)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
split string containing \r\n in Java 46 44
MySQL  on Tomcat 8 46
check java version using powershell 13 93
Java: anonymous class 4 22
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question