Login  Register

Quick question: MouseListener and multi threading

Posted by Andreas Drewke on Feb 22, 2017; 9:45pm
URL: https://forum.jogamp.org/Quick-question-MouseListener-and-multi-threading-tp4037663.html

Hi,

Quick question.

I've a single thread where my java program runs in simple said.
I need to know now if calls to a class implementing MouseListener interface are from the main thread or from another thread.

This is important to know as I put events into a queue. This needs to be thread safe if mouseXXX(MouseEvent event) is called from another thread than the main thread.

Thank you very much in advance.

Best regards
Andreas Drewke