Questions tagged [mouseclick-event]

An event that is triggered when a Mouse input device is clicked

A MouseClickEvent is an event that is triggered when a button on a Mouse input device is clicked. The event contains information such as the particular button that was clicked, the length of time that the button was pressed, and how many times the button was clicked (single-click, double-click, etc)

632 questions
-1
votes
2 answers

how to check if two jbuttons are the same (java)

is there a way to check if the button we get from clicking (mouseClicked) is the same as a button that exists in a array of buttons? I've used both (==) and equals() but neither works. i'm new to java, please take that in mind.
frog
  • 31
  • 6
-1
votes
1 answer

eventListener doesn't fire/doesn't bind properly

I've been messing around with YouTube API to make a button that copies the video ID on click using jQuery. I have no idea why, I don't get any Javascript errors and after hours (actually been working on this problem for 2 days), I still haven't…
-1
votes
4 answers

How to call a method on mouse click Java?

Each time we run this code it displays 3 random cards out of 54. I want to call the cards1(); method(that displays 3 random cards) on mouse click. each time I click in frame 3 random cards should be displayed. Could any body please help? import…
Usman Malik
  • 27
  • 1
  • 6
-1
votes
1 answer

Strengthen unit-test for "get click coordinates on canvas element"

EDIT: I have better rewrite the question, I can see was badly worded. Well worthy of a down vote... Apologies. I'm trying to get x,y coordinates when the user clicks inside a canvas element. I believe I have a correct solution. I have constructed…
P i
  • 29,020
  • 36
  • 159
  • 267
-1
votes
2 answers

How to detect mouse back and forward click in Delphi?

I have a Trust GXT-25 mouse and it has 4 buttons: left, right, back and next. I can only catch left and right. How can I detect the remaining 2 more events in Delphi XE3?
roll
  • 117
  • 7
-1
votes
1 answer

Opennig a select menu with jquery on right mouse click

So I'm confronted with a bit of a problem. I want to display a custom select menu when a user right clicks inside. So I don't even know how to approach this problem because once the select is open if user chooses option 1 the value will be inputted…
Robert Crous
  • 331
  • 5
  • 18
-1
votes
2 answers

swap mouse xbutton1 and xbutton2

bought a mouse from china and when i tried i realized thumb buttons are swapped was wondering with C# is it possible to switch these buttons i was trying something like: switch(MouseButtons) { case MouseButtons.XButton1: …
darkman00
  • 19
  • 5
-1
votes
1 answer

how to getChildname from a vbox

I need to get filename of the imageview within a vbox upon pressing a button?? Here file arraylist has been to added to vbox, the vbox to gridpane Is it possible using vbox.getChildren()?? or else how should i proceed. here's a screenshot for…
-1
votes
2 answers

how to use mouse click event

Hi i have a class where i am using mouseclick event i want to call another class when i click from my mouse MouseListener mouseListener = new MouseAdapter() { public void mouseClicked(MouseEvent mouseEvent) { JList theList = (JList)…
user3419449
-1
votes
1 answer

MouseListener to detect what has been clicked java

Possible Duplicate: MouseListener needs to interact with many object Java I have a program with many images drawn onto the screen, as well as other things. I have a mouse listener, but what is the most efficient way of detecting what has been…
user1724416
  • 914
  • 2
  • 11
  • 24
-1
votes
1 answer

How to bypass self implemented mouseClicked Event in Java

I am working on a big Gui project. Lots off complex stuff has been done and I cannot change the structure of the code. And as it is a complex project it is difficult to explain or give an SSE but I will try my best. In our project some people have…
Alptugay
  • 1,676
  • 4
  • 22
  • 29
-1
votes
1 answer

JAVA Mouse Event

In my program after selecting the option from pie menu related shape drawn around pie menu. what i want is when user select the option and then click anywhere in the screen related shape will draw there in the screen. can anyone tell me how can i…
Mushahid Hussain
  • 4,052
  • 11
  • 43
  • 62
-2
votes
2 answers

Toggle the checkbox status when double click in WPF

Created a simple checkbox in WPF. The single click toggles the checkbox status in the UI. I want the checkbox status to be changed when I double click on checkbox text. Please help me with code below. The only control in the xaml:
S_1
  • 62
  • 5
-2
votes
2 answers

Sending a click event to a Paint application

I am writing an application that automatically draws something on a canvas, depending on the user's preferences. For starters, how can I send a click event to the MS Paint application?
Smehrt Tonni
  • 193
  • 2
  • 2
  • 16
-2
votes
1 answer

Pygame / python mouse button down issue

I am trying to move an object by checking if the mouse is colliding with the objects rect and checking if a mouse button is down. here is my code: class Unit(pygame.sprite.Sprite): def __init__(self, display,): …
1 2 3
42
43