Eido Shack
Eido Shack

Reputation: 65

Capture image after double mouse click event

Is there any way to capture image after double click mouse event with java? I can capture image only at mouse release of double click event. But capture image is not the image after double click event.

Upvotes: 1

Views: 318

Answers (2)

BlacKow
BlacKow

Reputation: 316

http://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html

official java tutorial with example using MouseListener

Upvotes: 1

Andrew Thompson
Andrew Thompson

Reputation: 168825

Use MouseEvent.getClickCount().

Returns the number of mouse clicks associated with this event.

Upvotes: 5

Related Questions