Like in topic. I am trying to embed LWJGL canvas into Swing app, but I am encountering problems. It seems that when you increase the size of applet window everything is resizing correctly, but when you are trying to shrink applet window canvas does not resize correctly (LWJGL Display still have the same size even if it is much bigger than program window). Is there anything I can do to fix this?

Firstly, sorry for my English, because English isn't my mother language.I encountered this problem... several minutes ago, in my desktop application. In my application, Display -> Canvas -> Jpanel -> Jframe (-> means "is contained by"). The canvas cannot shrink accordingly, while increasing size works well (just like what you encourted), then I found that the canvas doesn't shrink with its parent(I make the canvas's backgroud color gray to figure it out). Since the code is automatically generated by WindowBuilder, I checked and altered the way how Jpanel is located in Jframe by modifying ".addComponent(panel, GroupLayout.DEFAULT_SIZE, 404, Short.MAX_VALUE)" to ".addComponent(panel, GroupLayout.PREFERRED_SIZE, 404, Short.MAX_VALUE)", and it works. So I suppose whether your solution is similar to mine, whether your automatic tools (such as WindowBuilder or Jigloo) understand you acurately.Here is the example duplicate the problem:

I did that, once I used a atomic reference to the window size and updated the viewport/projection when needed. However there was a bug where if you gave input to the lwjgl area it would hog the input from swing, is that fixed now?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org