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
0
votes
1 answer

Why does viewToModel return the position of the last char even if mouse is not over text?

I have a JTextPane and using a MouseAdapter I need to get the position ofthe char that is clicked on. Using viewToModel does return the wanted position when I click directly over chars, however, it returns the position of the last char in the row…
Igor
  • 1,532
  • 4
  • 23
  • 44
0
votes
0 answers

How to show jDialog from clicked in Jtable?

I try to show JDialog when I click JTable but my dialog didn't show. It is my code : private void jTable1MouseClicked(java.awt.event.MouseEvent evt) { if (evt.getButton() == MouseEvent.BUTTON1 &&…
haidey
  • 37
  • 1
  • 4
0
votes
1 answer

how to set accessible name for a QGraphicsScene?

I'm using QT. I want to set accessible name for a QGraphicsScene because at the mouse click I want to check whether witch graphics scene has been clicked? Thank You
Chanikag
  • 1,419
  • 2
  • 18
  • 31
0
votes
1 answer

JFreeChart: ChartMouseClicked not working

I'm using the JFreeChart library and created a chartPanel with chartMouseListener. What is strange is that the chartPanel did respond to chartMouseMove event but the chartMouseClicked is never trigger even though I've clicked very hard. Any one can…
Boyu Sun
  • 17
  • 3
0
votes
1 answer

Detect click on JTable: sometimes not recognized

I've this code to detect click on JTable table.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mouseClicked(java.awt.event.MouseEvent e) { int row= table.rowAtPoint(e.getPoint()); int col=…
Luca
  • 1,704
  • 3
  • 29
  • 42
0
votes
2 answers

Why are only the co-ordinates of the mouse displayed?

when the Thread thread is running, (after clicking record) it only displays the position the mouse was in when the thread started? how can i make it constantly update, displaying where the mouse is even if i move it around the frame? @Override…
0
votes
2 answers

Left-button click for Silverlight TextBox

I need TextBox that supports double click, but while trying to code it, i stuck with a problem that Silverlight textbox doesn't raise left-button mouse events if i click inside of text area. So what are possible solutions here? I'm using Silverlight…
noaRAVE
  • 432
  • 1
  • 5
  • 19
0
votes
1 answer

click events of combobox in flex

I found that in flex, combobox has 3 events: open, close, change combobox events example Let's say I selected A in my combo box. Then I might do 2 things: I open combobox and click A option again I open combobox and close it by clicking somewhere…
ZZZ
  • 3,574
  • 10
  • 34
  • 37
0
votes
1 answer

Getting MouseButton event when it happens, not when it is released

Simply put, I want to be able to get the event of a mouseclick (specifically MiddleButton) when a user clicks the button - not after it's been released. I think I've done it once before, but I've forgotten. This is to be able to navigate a 3D view…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
1 answer

Mouse Click in Silverlight 4

I need a mouse click event in my silver light project and I know we need to simulate it ourself if the object is not button. lets say I want mouseclick for my img... How exactly can we track time between mousedown and mouseup and say if the time…
Daniel
  • 3,322
  • 5
  • 30
  • 40
0
votes
1 answer

Detecting a Mouse click on selecting a row in dataGridView

I am having trouble getting my application to work correctly. I am trying to select a row in a datagridview with the mouse. I need to save the index of this row to allow me to navigate around the selected row. I have been looking at…
Daniel Flannery
  • 1,166
  • 8
  • 23
  • 51
0
votes
1 answer

Actionscript UIScrollbar and Click Event on containing Element

I'm creating a game in Flash CS5.5, basically a version of "Who wants to be a millionaire?". I have an answerDisplay Class which contains an answer text. Answer texts can become rather long, and since I have limited screen space I check for very…
Sorcy
  • 2,587
  • 5
  • 26
  • 34
0
votes
2 answers

Disabling a button prevents click event to server

I have a repeater with a button in that saves some data to the DB. My issue is sometime the call down to the DB takes a little bit and the user sometimes will click save a few times causing multiple entries to be added to the db. So my first thought…
Brad8118
  • 4,672
  • 11
  • 36
  • 48
0
votes
2 answers

How to get selected list view item for context menu click event

I need help to get Selected list view item details, when context menu assigned to list view items is clicked.
rajcool111
  • 657
  • 4
  • 14
  • 36
-1
votes
3 answers

call double click on mouse single click

how do we call double click on single mouse click event? Iam doing this and it's not working. Any ideas ? Private Sub RichTextBox1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles RichTextBox1.MouseClick …
xhammer
  • 145
  • 2
  • 12