Hello.
First, I apologize as I realize this question must be asked a lot.
In fact, I've been searching half a day today to find out how to integrate LWJGL 3 and display my scene in JFrame or Canvas... and I'm still not having a definite answer.
I found A BUNCH of threads, including from this forum that say that Swing isn't supported. Unfortunately they are mostly from 2015-2016, and I have no clue if the support was added after. At some point it seemed to be part of the plan, but I can't find the information.
I also found a bunch of threads here and on StackOverflow where people link to answers and possible solutions, but those links are also old and dead.
The closest thing to a solution I found - Is read FrameBugger from GLFW window, convert it into rasterized image and display on Canvas. But this seems to be such an inelegant solution, not to mention performance and other issues.
So I ask nice people here to please explain this to me if, and if so - how this can be done?
Thank you in advance.
Edit:
After much trial and error, I managed to come up with the solution that I posted in this thread on StackOverflow.
https://stackoverflow.com/questions/59174586/opengl-and-awt-swing-user-interface/59206923#59206923In case anyone ever needs to make LWJGL + EGL/GLES and AWT to work.