简体   繁体   中英

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.

Use MouseEvent.getClickCount() .

Returns the number of mouse clicks associated with this event.

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

official java tutorial with example using MouseListener

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM