Reply – Re: How to refer GL context in AWT Mouse Event
Your Name
Subject
Message
or Cancel
In Reply To
Re: How to refer GL context in AWT Mouse Event
— by nj nj
Thank you for you answer.

Then i should wrote like

public void mousePressed(MouseEvent mouseEvent) {
   float[] scale = new float[2];
   /*void*/getCurrentSurfaceScale(scale);
   float x = scale[0] * mouseEvent.getX();
   float y = scale[1] * mouseEvent.getY();
   setMousePressedLocation(x,y);
}


by the way,
can I refer GL context in SwingUtilities#invokeLater()
how can i use it safely ?

Regards,