0

Similar to the question at Closing video window using close "X" button in OpenCV, Python, is there a way to close a Video window with the X button using Java? Need solution for both Windows and Linux.

The Java version doesn't seem to have a getWindowsProperty() method anywhere.

Update I was not clear that I am trying to use HighGui.imshow(), which unfortunately, does not expose the JFrame to add a listener to it. See openCv 4 Java HighGui.imshow

Peter Kronenberg
  • 878
  • 10
  • 32

1 Answers1

0

If you have an access to java.awt.Window, you can always add a window listener to it. See some more info here